video: mxsfb: add missing include of linux/module.h
Subsystems (2)
PATCH RESEND 1/1 video: mxsfb: add missing include of linux/module.h
Include linux/module.h to fix below build error:
from drivers/video/mxsfb.c:42:arch/arm/mach-mxs/include/mach/memory.h:22:1: warning: this is the location of the previous definition drivers/video/mxsfb.c:574: error: 'THIS_MODULE' undeclared here (not in a function) drivers/video/mxsfb.c:893: warning: data definition has no type or storage class drivers/video/mxsfb.c:893: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' drivers/video/mxsfb.c:893: warning: parameter names (without types) in function declaration drivers/video/mxsfb.c:917: error: expected declaration specifiers or '...' before string constant drivers/video/mxsfb.c:917: warning: data definition has no type or storage class drivers/video/mxsfb.c:917: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/video/mxsfb.c:917: warning: function declaration isn't a prototype drivers/video/mxsfb.c:918: error: expected declaration specifiers or '...' before string constant drivers/video/mxsfb.c:918: warning: data definition has no type or storage class drivers/video/mxsfb.c:918: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/video/mxsfb.c:918: warning: function declaration isn't a prototype drivers/video/mxsfb.c:919: error: expected declaration specifiers or '...' before string constant drivers/video/mxsfb.c:919: warning: data definition has no type or storage class drivers/video/mxsfb.c:919: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/video/mxsfb.c:919: warning: function declaration isn't a prototype
make[2]: *** [drivers/video/mxsfb.o] Error 1
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
--- drivers/video/mxsfb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/mxsfb.c +1 -0
@@ -39,6 +39,7 @@* the required value in the imx_fb_videomode structure. */ +#include <linux/module.h> #include <linux/kernel.h> #include <linux/platform_device.h> #include <linux/clk.h>
Signature · 1 line
1.7.4.1
Florian Tobias Schandinat
AppliedQuoted 24 lines · Axel Lin
Include
linux/module.hto fix below build error:from
drivers/video/mxsfb.c:42:arch/arm/mach-mxs/include/mach/memory.h:22:1: warning: this is the location of the previous definitiondrivers/video/mxsfb.c:574: error: 'THIS_MODULE' undeclared here (not in a function)drivers/video/mxsfb.c:893: warning: data definition has no type or storage classdrivers/video/mxsfb.c:893: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE'drivers/video/mxsfb.c:893: warning: parameter names (without types) in function declarationdrivers/video/mxsfb.c:917: error: expected declaration specifiers or '...' before string constantdrivers/video/mxsfb.c:917: warning: data definition has no type or storage classdrivers/video/mxsfb.c:917: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'drivers/video/mxsfb.c:917: warning: function declaration isn't a prototypedrivers/video/mxsfb.c:918: error: expected declaration specifiers or '...' before string constantdrivers/video/mxsfb.c:918: warning: data definition has no type or storage classdrivers/video/mxsfb.c:918: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'drivers/video/mxsfb.c:918: warning: function declaration isn't a prototypedrivers/video/mxsfb.c:919: error: expected declaration specifiers or '...' before string constantdrivers/video/mxsfb.c:919: warning: data definition has no type or storage classdrivers/video/mxsfb.c:919: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'drivers/video/mxsfb.c:919: warning: function declaration isn't a prototype
make[2]: *** [drivers/video/mxsfb.o] Error 1
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
Quoted 1 line
Signed-off-by Axel Lin <[email protected]>
Applied.
Thanks,
Florian Tobias Schandinat
Quoted 16 lines
--- drivers/video/mxsfb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/video/mxsfb.c +1
-0@@ -39,6 +39,7 @@* the required value in the imx_fb_videomode structure. */ +#include <linux/module.h> #include <linux/kernel.h> #include <linux/platform_device.h> #include <linux/clk.h>