drivers/leds: leds-renesas-tpu.c needs module.h
PATCH 1/1 drivers/leds: leds-renesas-tpu.c needs module.h
leds-renesas-tpu.c needs to include linux/module.h to fix below build errors.
CC drivers/leds/leds-renesas-tpu.odrivers/leds/leds-renesas-tpu.c:341: error: expected declaration specifiers or '...' before string constant drivers/leds/leds-renesas-tpu.c:341: warning: data definition has no type or storage class drivers/leds/leds-renesas-tpu.c:341: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' drivers/leds/leds-renesas-tpu.c:341: warning: function declaration isn't a prototype drivers/leds/leds-renesas-tpu.c:342: error: expected declaration specifiers or '...' before string constant drivers/leds/leds-renesas-tpu.c:342: warning: data definition has no type or storage class drivers/leds/leds-renesas-tpu.c:342: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/leds/leds-renesas-tpu.c:342: warning: function declaration isn't a prototype drivers/leds/leds-renesas-tpu.c:343: error: expected declaration specifiers or '...' before string constant drivers/leds/leds-renesas-tpu.c:343: warning: data definition has no type or storage class drivers/leds/leds-renesas-tpu.c:343: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/leds/leds-renesas-tpu.c:343: warning: function declaration isn't a prototype make[2]: *** [drivers/leds/leds-renesas-tpu.o] Error 1
make[1]: *** [drivers/leds] Error 2
make: *** [drivers] Error 2
--- drivers/leds/leds-renesas-tpu.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/leds/leds-renesas-tpu.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <linux/module.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/spinlock.h>
Signature · 1 line
1.7.4.1