Skip to contentSkip to conversation

avr32: fix missing module.h causing build failure in mimc200/fram.c

PATCH In review Paul Gortmaker 2 participants 2 messages Jan 10, 2014 – Jan 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32: fix missing module.h causing build failure in mimc200/fram.c

Causing this:

In file included from arch/avr32/boards/mimc200/fram.c:13:
include/linux/miscdevice.h:51: error: field 'list' has incomplete type include/linux/miscdevice.h:55: error: expected specifier-qualifier-list before 'mode_t' arch/avr32/boards/mimc200/fram.c:42: error: 'THIS_MODULE' undeclared here (not in a function)

Cc Haavard Skinnemoen <[email protected]>
Cc Hans-Christian Egtvedt <[email protected]>
arch/avr32/boards/mimc200/fram.c +1 -0
index 9764a1a1073e..c1466a872b9c 100644
@@ -11,6 +11,7 @@
 #define FRAM_VERSION	"1.0"
 
 #include <linux/miscdevice.h>
+#include <linux/module.h>
 #include <linux/proc_fs.h>
 #include <linux/mm.h>
 #include <linux/io.h>
Signature · 1 line
1.8.5.2
#1 lore raw
Quoted 11 lines · Paul Gortmaker

Causing this:

In file included from arch/avr32/boards/mimc200/fram.c:13:
include/linux/miscdevice.h:51: error: field 'list' has incomplete type include/linux/miscdevice.h:55: error: expected specifier-qualifier-list before 'mode_t' arch/avr32/boards/mimc200/fram.c:42: error: 'THIS_MODULE' undeclared here (not in a function)

Cc Haavard Skinnemoen <[email protected]>
Cc Hans-Christian Egtvedt <[email protected]>

Thank you for fixing, almost identical to Sergei Trofimovich patch, which appeared first in my inbox.

Fix appended to the AVR32 tree.

Quoted 12 lines
arch/avr32/boards/mimc200/fram.c +1 -0
index 9764a1a1073e..c1466a872b9c 100644
@@ -11,6 +11,7 @@
 #define FRAM_VERSION	"1.0"
 
 #include <linux/miscdevice.h>
+#include <linux/module.h>
 #include <linux/proc_fs.h>
 #include <linux/mm.h>
 #include <linux/io.h>
Signature · 2 lines
mvh
Hans-Christian Egtvedt