]> granicus.if.org Git - ipset/commitdiff
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 13 Jan 2012 20:28:45 +0000 (21:28 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 13 Jan 2012 20:29:52 +0000 (21:29 +0100)
These files are non modular, but need to export symbols using
the macros now living in export.h -- call out the include so
that things won't break when we remove the implicit presence
of module.h from everywhere.

kernel/net/netfilter/ipset/ip_set_getport.c
kernel/net/netfilter/ipset/pfxlen.c

index 58ca4e1da50e4e530f4ba48801d2c0c517cba6e3..0f77a53380481589428a71fe49dbde5c012e7ea5 100644 (file)
@@ -7,6 +7,10 @@
 
 /* Get Layer-4 data from the packets */
 
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
+#include <linux/export.h>
+#endif
 #include <linux/ip.h>
 #include <linux/skbuff.h>
 #include <linux/icmp.h>
index bd13d66220f154801b4b21662f25990b27d829b8..c5191c78748bc07d680f83ddf6375f1f10b088b1 100644 (file)
@@ -1,3 +1,7 @@
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
+#include <linux/export.h>
+#endif
 #include <linux/netfilter/ipset/pfxlen.h>
 
 /*