ARM: OMAP2+: l3-noc: Include linux/module.h
Subsystems (3)
PATCH 1/1 ARM: OMAP2+: l3-noc: Include linux/module.h
Include linux/module.h to fix below build error:
CC arch/arm/mach-omap2/omap_l3_noc.oarch/arm/mach-omap2/omap_l3_noc.c:240: error: expected ',' or ';' before 'MODULE_DEVICE_TABLE' arch/arm/mach-omap2/omap_l3_noc.c:250: error: 'THIS_MODULE' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/omap_l3_noc.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2
---
I got the build error by make omap2plus_defconfig on linux-next 20111101.
arch/arm/mach-omap2/omap_l3_noc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/omap_l3_noc.c +1 -0
@@ -20,6 +20,7 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ +#include <linux/module.h> #include <linux/init.h> #include <linux/io.h> #include <linux/platform_device.h>
Signature · 1 line
1.7.5.4
Tony Lindgren
maintainerQuoted 20 lines · Axel Lin
Include
linux/module.hto fix below build error:CC
arch/arm/mach-omap2/omap_l3_noc.oarch/arm/mach-omap2/omap_l3_noc.c:240: error: expected ',' or ';' before 'MODULE_DEVICE_TABLE'arch/arm/mach-omap2/omap_l3_noc.c:250: error: 'THIS_MODULE' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/omap_l3_noc.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2Signed-off-by Axel Lin <[email protected]>---
I got the build error by makeomap2plus_defconfigon linux-next 20111101.arch/arm/mach-omap2/omap_l3_noc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/arm/mach-omap2/omap_l3_noc.c +0
-0
arch/arm/mach-omap2/omap_l3_noc.c line 26
Quoted 7 lines
arch/arm/mach-omap2/omap_l3_noc.c +1
-0@@ -20,6 +20,7 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ +#include <linux/module.h> #include <linux/init.h> #include <linux/io.h> #include <linux/platform_device.h>
Thanks applying into fixes.
Tony