]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: OMAP: Fix export.h or module.h includes
authorTony Lindgren <tony@atomide.com>
Mon, 7 Nov 2011 20:27:10 +0000 (12:27 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 7 Nov 2011 20:27:10 +0000 (12:27 -0800)
Commit 32aaeffbd4a7457bf2f7448b33b5946ff2a960eb (Merge branch
'modsplit-Oct31_2011'...) caused some build errors. Fix these
and make sure we always have export.h or module.h included
for MODULE_ and EXPORT_SYMBOL users:

$ grep -rl ^MODULE_ arch/arm/*omap*/*.c | xargs \
  grep -L linux/module.h
  arch/arm/mach-omap2/dsp.c
  arch/arm/mach-omap2/mailbox.c
  arch/arm/mach-omap2/omap-iommu.c
  arch/arm/mach-omap2/smartreflex.c

Also check we either have export.h or module.h included
for the files exporting symbols:

$ grep -rl EXPORT_SYMBOL arch/arm/*omap*/*.c | xargs \
  grep -L linux/export.h | xargs grep -L linux/module.h

Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/dsp.c
arch/arm/mach-omap2/mailbox.c
arch/arm/mach-omap2/omap-iommu.c
arch/arm/mach-omap2/smartreflex.c

index 911cd2e68d46e060291e67a14110e86f17e232f5..74f18f2952df220107c1846e98c4d34b7007243f 100644 (file)
@@ -18,6 +18,7 @@
  * of the OMAP PM core code.
  */
 
+#include <linux/module.h>
 #include <linux/platform_device.h>
 #include "cm2xxx_3xxx.h"
 #include "prm2xxx_3xxx.h"
index 86d564a640bb80f8adf1dc961637907592530da4..609ea2ded7e388a22ed9c9d59ba888672ebb13ab 100644 (file)
@@ -10,6 +10,7 @@
  * for more details.
  */
 
+#include <linux/module.h>
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>
index e61feadcda4ee6438b64eb5418871d1733dfebad..b8822048e409c490c949bd8eb4e7329967ac12c9 100644 (file)
@@ -10,6 +10,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/module.h>
 #include <linux/platform_device.h>
 
 #include <plat/iommu.h>
index 0347b93211e6d468257f3a0bd365ebb28726edd8..6a4f6839a7d93fecc95259506c3ea38962a3ba5a 100644 (file)
@@ -17,6 +17,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/clk.h>
 #include <linux/io.h>