Skip to content

Commit a1bcc1d

Browse files
committed
ARM: OMAP: Fix export.h or module.h includes
Commit 32aaeff (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 <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 5558141 commit a1bcc1d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

arch/arm/mach-omap2/dsp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* of the OMAP PM core code.
1919
*/
2020

21+
#include <linux/module.h>
2122
#include <linux/platform_device.h>
2223
#include "cm2xxx_3xxx.h"
2324
#include "prm2xxx_3xxx.h"

arch/arm/mach-omap2/mailbox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* for more details.
1111
*/
1212

13+
#include <linux/module.h>
1314
#include <linux/clk.h>
1415
#include <linux/err.h>
1516
#include <linux/platform_device.h>

arch/arm/mach-omap2/omap-iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* published by the Free Software Foundation.
1111
*/
1212

13+
#include <linux/module.h>
1314
#include <linux/platform_device.h>
1415

1516
#include <plat/iommu.h>

arch/arm/mach-omap2/smartreflex.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* published by the Free Software Foundation.
1818
*/
1919

20+
#include <linux/module.h>
2021
#include <linux/interrupt.h>
2122
#include <linux/clk.h>
2223
#include <linux/io.h>

0 commit comments

Comments
 (0)