]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc: include export.h for files using EXPORT_SYMBOL/THIS_MODULE
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 29 Jul 2011 06:19:31 +0000 (16:19 +1000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:30:38 +0000 (19:30 -0400)
Fix failures in powerpc associated with the previously allowed
implicit module.h presence that now lead to things like this:

arch/powerpc/mm/mmu_context_hash32.c:76:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
arch/powerpc/mm/tlb_hash32.c:48:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'
arch/powerpc/kernel/pci_32.c:51:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
arch/powerpc/kernel/iomap.c:36:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'
arch/powerpc/platforms/44x/canyonlands.c:126:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'
arch/powerpc/kvm/44x.c:168:59: error: 'THIS_MODULE' undeclared (first use in this function)

[with several contibutions from Stephen Rothwell <sfr@canb.auug.org.au>]

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 files changed:
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/iomap.c
arch/powerpc/kernel/pci_32.c
arch/powerpc/kvm/44x.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/mm/dma-noncoherent.c
arch/powerpc/mm/mmu_context_hash32.c
arch/powerpc/mm/tlb_hash32.c
arch/powerpc/mm/tlb_nohash.c
arch/powerpc/platforms/44x/warp.c
arch/powerpc/platforms/pseries/pci_dlpar.c
arch/powerpc/sysdev/ppc4xx_msi.c
arch/powerpc/sysdev/qe_lib/usb.c

index 47cacddb14cf26732a4550bbd213333f06df15be..7fa31cec41bcbefe5aa006673cc687355d2dfa89 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/seq_file.h>
 #include <linux/init.h>
 #include <linux/dma-mapping.h>
+#include <linux/export.h>
 
 #include <asm/setup.h>
 
index b25f6325fc7090a5e02e9731bbadd49b6c65f9dd..262791807397375612e29860ae64e5d86ee6cc6a 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/mm.h>
+#include <linux/export.h>
 #include <asm/io.h>
 #include <asm/pci-bridge.h>
 
index bb154511db5eb2ab484fe390973bd759a5b5fc7b..fdd1a3d951dcaf50b5e63b72901ef507b9f19a90 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/list.h>
 #include <linux/of.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 
 #include <asm/processor.h>
 #include <asm/io.h>
index ca1f88b3dc596fb099c8fba2a9659fbe047592f5..7b612a76c70129488d24be5ed60bc56c523878f4 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/kvm_host.h>
 #include <linux/slab.h>
 #include <linux/err.h>
+#include <linux/export.h>
 
 #include <asm/reg.h>
 #include <asm/cputable.h>
index d417511abfb120f6992058e26547576d570bfcd9..bc4d50dec78b8f420f789d722c38c66d42a87ab6 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <linux/kvm_host.h>
+#include <linux/export.h>
 #include <linux/err.h>
 #include <linux/slab.h>
 
index b42f76c4948dba17b1d84efb32bb3f06790df1e0..329be36c0a8dd25aaa53749ef43c7c0087f14201 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/highmem.h>
 #include <linux/dma-mapping.h>
+#include <linux/export.h>
 
 #include <asm/tlbflush.h>
 
index d0ee554e86e47c77d5084a7ac6d4f640e5cf763c..78fef6726e103596a1e0c5740951d09d9d7d0798 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <linux/mm.h>
 #include <linux/init.h>
+#include <linux/export.h>
 
 #include <asm/mmu_context.h>
 #include <asm/tlbflush.h>
index 9a445f64accd086fa549f0cd750ac999b7669eab..558e30cce33eed7017fbe3066e1868dd40a95db3 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/init.h>
 #include <linux/highmem.h>
 #include <linux/pagemap.h>
+#include <linux/export.h>
 
 #include <asm/tlbflush.h>
 #include <asm/tlb.h>
index d32ec643c231fa6b038d579b7112e590c03daf92..0ff8ab5702a9dee660023572f747ce6d2059d917 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/export.h>
 #include <linux/mm.h>
 #include <linux/init.h>
 #include <linux/highmem.h>
index 8f771395f424e6d345ad8e6d2a36b093aa9ea946..4cfa49901c023f069828c5b8f50a1b5028cf69bf 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/of_gpio.h>
 #include <linux/of_i2c.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 
 #include <asm/machdep.h>
 #include <asm/prom.h>
index 3bf4488aaec6537ce6983965bee978209fb7be4e..55d4ec1bd1ac6234531127c867749aa5bba3ca68 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include <linux/pci.h>
+#include <linux/export.h>
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
 #include <asm/firmware.h>
index 367af02418514b8cbdfdea8f57286308a035eeca..1c2d7af17bbe2f3501ff95060e119ced1ed565e8 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/msi.h>
 #include <linux/of_platform.h>
 #include <linux/interrupt.h>
+#include <linux/export.h>
 #include <asm/prom.h>
 #include <asm/hw_irq.h>
 #include <asm/ppc-pci.h>
index 8105462078eb1596353f4525940cf2c2cc4c6278..9162828f5da7351c88c9afcf99ab82eabb7ecbdf 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
+#include <linux/export.h>
 #include <linux/io.h>
 #include <asm/immap_qe.h>
 #include <asm/qe.h>