Skip to contentSkip to conversation

arch/avr32/boards/mimc200/fram.c: add missing 'module.h' for MODULE_LICENSE

PATCH In review Sergei Trofimovich 2 participants 2 messages Jan 10, 2014 – Jan 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/avr32/boards/mimc200/fram.c: add missing 'module.h' for MODULE_LICENSE

config: make ARCH=avr32 mimc200_defconfig

Quoted 6 lines

All error/warnings:

arch/avr32/boards/mimc200/fram.c:79: error: expected declaration specifiers or '...' before string constant arch/avr32/boards/mimc200/fram.c:79: warning: data definition has no type or storage class arch/avr32/boards/mimc200/fram.c:79: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'

Quoted 1 line
Quoted 1 line

arch/avr32/boards/mimc200/fram.c:79: error: function declaration isn't a prototype

Untested.

CC Mark Jackson <[email protected]>
CC Hans-Christian Egtvedt <[email protected]>
CC Haavard Skinnemoen <[email protected]>
---
 arch/avr32/boards/mimc200/fram.c | 1 +
 1 file changed, 1 insertion(+)
arch/avr32/boards/mimc200/fram.c +1 -0
index 9764a1a..76cb51d 100644
@@ -13,6 +13,7 @@
 #include <linux/miscdevice.h>
 #include <linux/proc_fs.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 #include <linux/io.h>
 
 #define FRAM_BASE	0xac000000
Signature · 1 line
1.8.5.2
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Sergei Trofimovich

config: make ARCH=avr32 mimc200_defconfig

Quoted 6 lines

All error/warnings:

arch/avr32/boards/mimc200/fram.c:79: error: expected declaration specifiers or '...' before string constant arch/avr32/boards/mimc200/fram.c:79: warning: data definition has no type or storage class arch/avr32/boards/mimc200/fram.c:79: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'

Quoted 1 line
Quoted 1 line

arch/avr32/boards/mimc200/fram.c:79: error: function declaration isn't a prototype

Untested.

Looks very sane.

Quoted 5 lines
CC Mark Jackson <[email protected]>
CC Hans-Christian Egtvedt <[email protected]>
CC Haavard Skinnemoen <[email protected]>
Quoted 3 lines
---
 arch/avr32/boards/mimc200/fram.c | 1 +
 1 file changed, 1 insertion(+)

I will append this to the AVR32 tree at git.kernel.org.

Quoted 12 lines
arch/avr32/boards/mimc200/fram.c +1 -0
index 9764a1a..76cb51d 100644
@@ -13,6 +13,7 @@
 #include <linux/miscdevice.h>
 #include <linux/proc_fs.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 #include <linux/io.h>
 
 #define FRAM_BASE	0xac000000
Signature · 2 lines
mvh
Hans-Christian Egtvedt