Skip to contentSkip to conversation

spi/tegra: fix compilation error in spi-tegra.c

PATCH Applied Marc Dietrich 2 participants 2 messages Oct 13, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi/tegra: fix compilation error in spi-tegra.c

Add #include <linux/module.h> to spi-tegra.c to fix a compilation error after the removal of module.h from device.h (in patch: "include: replace linux/module.h with "struct module" wherever possible").

---

Hi Grant,

this fixes the error below:

CC drivers/spi/spi-tegra.o
drivers/spi/spi-tegra.c:597: error: expected declaration specifiers or '...' before string constant
drivers/spi/spi-tegra.c:597: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:597: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'
drivers/spi/spi-tegra.c:597: warning: function declaration isn't a prototype drivers/spi/spi-tegra.c:604: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:604: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE'
drivers/spi/spi-tegra.c:604: warning: parameter names (without types) in function declaration
drivers/spi/spi-tegra.c:612: error: 'THIS_MODULE' undeclared here (not in a function) drivers/spi/spi-tegra.c:630: error: expected declaration specifiers or '...' before string constant
drivers/spi/spi-tegra.c:630: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:630: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/spi/spi-tegra.c:630: warning: function declaration isn't a prototype make[2]: *** [drivers/spi/spi-tegra.o] Error 1

It is against linux-next (for 3.2). Please apply.

Thanks
Marc

drivers/spi/spi-tegra.c +1 -0
index a5a6302..e8cd58f 100644
@@ -18,6 +18,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/init.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>
Applied
#1 lore raw
Quoted 6 lines · Marc Dietrich

Add #include <linux/module.h> to spi-tegra.c to fix a compilation error after the removal of module.h from device.h (in patch: "include: replace linux/module.h with "struct module" wherever possible").

Applied, thanks

g.

Quoted 44 lines

---

Hi Grant,

this fixes the error below:

CC drivers/spi/spi-tegra.o
drivers/spi/spi-tegra.c:597: error: expected declaration specifiers or '...' before string constant
drivers/spi/spi-tegra.c:597: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:597: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'
drivers/spi/spi-tegra.c:597: warning: function declaration isn't a prototype drivers/spi/spi-tegra.c:604: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:604: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE'
drivers/spi/spi-tegra.c:604: warning: parameter names (without types) in function declaration
drivers/spi/spi-tegra.c:612: error: 'THIS_MODULE' undeclared here (not in a function) drivers/spi/spi-tegra.c:630: error: expected declaration specifiers or '...' before string constant
drivers/spi/spi-tegra.c:630: warning: data definition has no type or storage class drivers/spi/spi-tegra.c:630: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/spi/spi-tegra.c:630: warning: function declaration isn't a prototype make[2]: *** [drivers/spi/spi-tegra.o] Error 1

It is against linux-next (for 3.2). Please apply.

Thanks
Marc

drivers/spi/spi-tegra.c +1 -0
index a5a6302..e8cd58f 100644
@@ -18,6 +18,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/init.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>