From: Paul Gortmaker Date: Fri, 13 Jan 2012 20:28:45 +0000 (+0100) Subject: net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules X-Git-Tag: v6.11~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd71826fcfcfcc8c36f0508cc183dd222da40452;p=ipset 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. --- 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 /*