compat-3.3: include module.h
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.
Signed-off-by Johannes Berg <[email protected]>
--- compat/compat-3.3.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
compat/compat-3.3.c +1 -0
@@ -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