backlight: ep93xx_bl: add missing include of linux/module.h
Subsystems (2)
PATCH 1/1 backlight: ep93xx_bl: add missing include of linux/module.h
ep93xx_bl.c uses interfaces from linux/module.h,
so it should include that file. This patch fixes below build errors.
CC [M] drivers/video/backlight/ep93xx_bl.odrivers/video/backlight/ep93xx_bl.c:138: error: 'THIS_MODULE' undeclared here (not in a function) drivers/video/backlight/ep93xx_bl.c:158: error: expected declaration specifiers or '...' before string constant drivers/video/backlight/ep93xx_bl.c:158: warning: data definition has no type or storage class drivers/video/backlight/ep93xx_bl.c:158: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/video/backlight/ep93xx_bl.c:158: warning: function declaration isn't a prototype drivers/video/backlight/ep93xx_bl.c:159: error: expected declaration specifiers or '...' before string constant drivers/video/backlight/ep93xx_bl.c:159: warning: data definition has no type or storage class drivers/video/backlight/ep93xx_bl.c:159: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/video/backlight/ep93xx_bl.c:159: warning: function declaration isn't a prototype drivers/video/backlight/ep93xx_bl.c:160: error: expected declaration specifiers or '...' before string constant drivers/video/backlight/ep93xx_bl.c:160: warning: data definition has no type or storage class drivers/video/backlight/ep93xx_bl.c:160: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/video/backlight/ep93xx_bl.c:160: warning: function declaration isn't a prototype drivers/video/backlight/ep93xx_bl.c:161: error: expected declaration specifiers or '...' before string constant drivers/video/backlight/ep93xx_bl.c:161: warning: data definition has no type or storage class drivers/video/backlight/ep93xx_bl.c:161: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS' drivers/video/backlight/ep93xx_bl.c:161: warning: function declaration isn't a prototype make[3]: *** [drivers/video/backlight/ep93xx_bl.o] Error 1
make[2]: *** [drivers/video/backlight] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
--- drivers/video/backlight/ep93xx_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/ep93xx_bl.c +1 -1
@@ -11,7 +11,7 @@* BRIGHT, on the Cirrus EP9307, EP9312, and EP9315 processors. */ - +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/fb.h>
Signature · 1 line
1.7.4.1
Quoted 2 lines · Axel Lin
ep93xx_bl.cuses interfaces fromlinux/module.h,
so it should include that file. This patch fixes below build errors.
Thanks,
Quoted 41 lines
CC [M]
drivers/video/backlight/ep93xx_bl.odrivers/video/backlight/ep93xx_bl.c:138: error: 'THIS_MODULE' undeclared here (not in a function)drivers/video/backlight/ep93xx_bl.c:158: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:158: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:158: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'drivers/video/backlight/ep93xx_bl.c:158: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:159: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:159: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:159: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'drivers/video/backlight/ep93xx_bl.c:159: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:160: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:160: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:160: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'drivers/video/backlight/ep93xx_bl.c:160: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:161: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:161: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:161: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'drivers/video/backlight/ep93xx_bl.c:161: warning: function declaration isn't a prototype make[3]: *** [drivers/video/backlight/ep93xx_bl.o] Error 1
make[2]: *** [drivers/video/backlight] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2Signed-off-by Axel Lin<[email protected]>--- drivers/video/backlight/ep93xx_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/video/backlight/ep93xx_bl.c +1
-1@@ -11,7 +11,7 @@* BRIGHT, on the Cirrus EP9307, EP9312, and EP9315 processors. */ - +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/fb.h>
Quoted 7 lines · Ryan Mallon
Quoted 2 lines · Axel Lin
ep93xx_bl.cuses interfaces fromlinux/module.h,
so it should include that file. This patch fixes below build errors.Thanks,
Acked-by Ryan Mallon <[email protected]>
Retracted. Please see my reply to the ep93xx framebuffer patch.
~Ryan
Quoted 43 lines
Quoted 42 lines
CC [M]
drivers/video/backlight/ep93xx_bl.odrivers/video/backlight/ep93xx_bl.c:138: error: 'THIS_MODULE' undeclared here (not in a function)drivers/video/backlight/ep93xx_bl.c:158: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:158: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:158: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'drivers/video/backlight/ep93xx_bl.c:158: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:159: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:159: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:159: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'drivers/video/backlight/ep93xx_bl.c:159: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:160: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:160: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:160: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'drivers/video/backlight/ep93xx_bl.c:160: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:161: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:161: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:161: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'drivers/video/backlight/ep93xx_bl.c:161: warning: function declaration isn't a prototype make[3]: *** [drivers/video/backlight/ep93xx_bl.o] Error 1
make[2]: *** [drivers/video/backlight] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2Signed-off-by Axel Lin<[email protected]>--- drivers/video/backlight/ep93xx_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/video/backlight/ep93xx_bl.c +1
-1@@ -11,7 +11,7 @@* BRIGHT, on the Cirrus EP9307, EP9312, and EP9315 processors. */ - +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/fb.h>
Quoted 37 lines · Axel Lin
ep93xx_bl.cuses interfaces fromlinux/module.h,
so it should include that file. This patch fixes below build errors.CC [M]
drivers/video/backlight/ep93xx_bl.odrivers/video/backlight/ep93xx_bl.c:138: error: 'THIS_MODULE' undeclared here (not in a function)drivers/video/backlight/ep93xx_bl.c:158: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:158: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:158: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'drivers/video/backlight/ep93xx_bl.c:158: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:159: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:159: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:159: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'drivers/video/backlight/ep93xx_bl.c:159: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:160: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:160: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:160: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'drivers/video/backlight/ep93xx_bl.c:160: warning: function declaration isn't a prototypedrivers/video/backlight/ep93xx_bl.c:161: error: expected declaration specifiers or '...' before string constantdrivers/video/backlight/ep93xx_bl.c:161: warning: data definition has no type or storage classdrivers/video/backlight/ep93xx_bl.c:161: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'drivers/video/backlight/ep93xx_bl.c:161: warning: function declaration isn't a prototype make[3]: *** [drivers/video/backlight/ep93xx_bl.o] Error 1
make[2]: *** [drivers/video/backlight] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2Signed-off-by Axel Lin <[email protected]>--- drivers/video/backlight/ep93xx_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/video/backlight/ep93xx_bl.c +0
-0
drivers/video/backlight/ep93xx_bl.c line 17
Quoted 8 lines
drivers/video/backlight/ep93xx_bl.c +1
-1@@ -11,7 +11,7 @@* BRIGHT, on the Cirrus EP9307, EP9312, and EP9315 processors. */ - +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/fb.h>
Ah.. This was due to commit 089f5643ba "include: replace linux/module.h with "struct module" wherever possible".
Before that commit, including <linux/platform_device.h> would pull in <linux/device.h> which would then pull in <linux/module.h>. Now any driver using the MODULE_ macros needs to include <linux/module.h> directly.
Looks correct to me.
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�