Skip to contentSkip to conversation

compat-3.3: include module.h

PATCH New Johannes Berg 1 participant 1 message Mar 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat-3.3: include module.h

From: Johannes Berg <[email protected]>

compat/compat-3.3.c:172:1: warning: data definition has no type or storage class [enabled by default] compat/compat-3.3.c:172:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int] compat/compat-3.3.c:172:1: warning: parameter names (without types) in function declaration [enabled by default]

In newer kernels we should include export.h, but
not all kernels have that so use module.h which
always works.

---
 compat/compat-3.3.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
compat/compat-3.3.c +1 -0
index 27c09e0..8489344 100644
@@ -11,6 +11,7 @@
 #include <linux/kernel.h>
 #include <linux/version.h>
 #include <linux/skbuff.h>
+#include <linux/module.h>
 #include <net/dst.h>
 #include <net/xfrm.h>
 
Signature · 1 line
1.7.9.1