linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] compat-3.3: include module.h
@ 2012-03-30  9:52 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2012-03-30  9:52 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

From: Johannes Berg <johannes.berg@intel.com>

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 <johannes.berg@intel.com>
---
 compat/compat-3.3.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/compat/compat-3.3.c b/compat/compat-3.3.c
index 27c09e0..8489344 100644
--- a/compat/compat-3.3.c
+++ b/compat/compat-3.3.c
@@ -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>
 
-- 
1.7.9.1




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-30  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30  9:52 [PATCH] compat-3.3: include module.h Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).