netfilter: add missing IS_ENABLED(CONFIG_NETFILTER) checks to some header-files.
authorJeremy Sowden <jeremy@azazel.net>
Wed, 7 Aug 2019 14:17:03 +0000 (15:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 13 Aug 2019 10:15:18 +0000 (12:15 +0200)
commit78458e3e08cda2aacaec9fde8c295dfc2f88618a
tree8bb8819e0c2895d179a1513608079bb03994498b
parent0abc8bf4f2842e409926096f0fa009b468cbd855
netfilter: add missing IS_ENABLED(CONFIG_NETFILTER) checks to some header-files.

linux/netfilter.h defines a number of struct and inline function
definitions which are only available is CONFIG_NETFILTER is enabled.
These structs and functions are used in declarations and definitions in
other header-files.  Added preprocessor checks to make sure these
headers will compile if CONFIG_NETFILTER is disabled.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
15 files changed:
include/linux/netfilter/x_tables.h
include/linux/netfilter_arp/arp_tables.h
include/linux/netfilter_bridge/ebtables.h
include/linux/netfilter_ipv4/ip_tables.h
include/linux/netfilter_ipv6/ip6_tables.h
include/net/netfilter/br_netfilter.h
include/net/netfilter/nf_conntrack_bridge.h
include/net/netfilter/nf_conntrack_core.h
include/net/netfilter/nf_conntrack_l4proto.h
include/net/netfilter/nf_conntrack_tuple.h
include/net/netfilter/nf_flow_table.h
include/net/netfilter/nf_nat.h
include/net/netfilter/nf_queue.h
include/net/netfilter/nf_synproxy.h
include/net/netfilter/nf_tables.h