summaryrefslogtreecommitdiffstats
path: root/kernel/net
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-01-13 21:28:45 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-01-13 21:29:52 +0100
commitdd71826fcfcfcc8c36f0508cc183dd222da40452 (patch)
treec3f9431f40d5f3bedd3f3442026fb3a330d9343d /kernel/net
parenta8e494dcebf3588fc1b4682f83f3babae497c0c3 (diff)
net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
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.
Diffstat (limited to 'kernel/net')
-rw-r--r--kernel/net/netfilter/ipset/ip_set_getport.c4
-rw-r--r--kernel/net/netfilter/ipset/pfxlen.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/kernel/net/netfilter/ipset/ip_set_getport.c b/kernel/net/netfilter/ipset/ip_set_getport.c
index 58ca4e1..0f77a53 100644
--- a/kernel/net/netfilter/ipset/ip_set_getport.c
+++ b/kernel/net/netfilter/ipset/ip_set_getport.c
@@ -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>
diff --git a/kernel/net/netfilter/ipset/pfxlen.c b/kernel/net/netfilter/ipset/pfxlen.c
index bd13d66..c5191c7 100644
--- a/kernel/net/netfilter/ipset/pfxlen.c
+++ b/kernel/net/netfilter/ipset/pfxlen.c
@@ -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>
/*