From dd71826fcfcfcc8c36f0508cc183dd222da40452 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Fri, 13 Jan 2012 21:28:45 +0100 Subject: 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. --- kernel/net/netfilter/ipset/ip_set_getport.c | 4 ++++ kernel/net/netfilter/ipset/pfxlen.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'kernel/net/netfilter') 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 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0) +#include +#endif #include #include #include 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 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0) +#include +#endif #include /* -- cgit v1.2.3