[PATCH 3/3] Revert "powerpc: fix build failure by disabling attribute-alias warning in pci_32"

Paul Burton paul.burton at mips.com
Sat Jun 16 10:53:22 AEST 2018


With SYSCALL_DEFINEx() disabling -Wattribute-alias generically, there's
no need to duplicate that for PowerPC's pciconfig_iobase syscall.

This reverts commit 415520373975 ("powerpc: fix build failure by
disabling attribute-alias warning in pci_32").

Signed-off-by: Paul Burton <paul.burton at mips.com>
Cc: Michal Marek <michal.lkml at markovi.net>
Cc: Masahiro Yamada <yamada.masahiro at socionext.com>
Cc: Douglas Anderson <dianders at chromium.org>
Cc: Al Viro <viro at zeniv.linux.org.uk>
Cc: Heiko Carstens <heiko.carstens at de.ibm.com>
Cc: Mauro Carvalho Chehab <mchehab at kernel.org>
Cc: Matthew Wilcox <matthew at wil.cx>
Cc: Matthias Kaehlcke <mka at chromium.org>
Cc: Arnd Bergmann <arnd at arndb.de>
Cc: Ingo Molnar <mingo at kernel.org>
Cc: Josh Poimboeuf <jpoimboe at redhat.com>
Cc: Kees Cook <keescook at chromium.org>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: Thomas Gleixner <tglx at linutronix.de>
Cc: Gideon Israel Dsouza <gidisrael at gmail.com>
Cc: Christophe Leroy <christophe.leroy at c-s.fr>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Paul Mackerras <paulus at samba.org>
Cc: Michael Ellerman <mpe at ellerman.id.au>
Cc: Stafford Horne <shorne at gmail.com>
Cc: Khem Raj <raj.khem at gmail.com>
Cc: He Zhe <zhe.he at windriver.com>
Cc: linux-kbuild at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: linux-mips at linux-mips.org
Cc: linuxppc-dev at lists.ozlabs.org

---

 arch/powerpc/kernel/pci_32.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c
index 4f861055a852..d63b488d34d7 100644
--- a/arch/powerpc/kernel/pci_32.c
+++ b/arch/powerpc/kernel/pci_32.c
@@ -285,9 +285,6 @@ pci_bus_to_hose(int bus)
  * Note that the returned IO or memory base is a physical address
  */
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpragmas"
-#pragma GCC diagnostic ignored "-Wattribute-alias"
 SYSCALL_DEFINE3(pciconfig_iobase, long, which,
 		unsigned long, bus, unsigned long, devfn)
 {
@@ -313,4 +310,3 @@ SYSCALL_DEFINE3(pciconfig_iobase, long, which,
 
 	return result;
 }
-#pragma GCC diagnostic pop
-- 
2.17.1



More information about the Linuxppc-dev mailing list