diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2019-08-07 15:17:03 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-13 12:15:18 +0200 |
commit | 78458e3e08cda2aacaec9fde8c295dfc2f88618a (patch) | |
tree | 8bb8819e0c2895d179a1513608079bb03994498b /include/net/netfilter/br_netfilter.h | |
parent | netfilter: add missing IS_ENABLED(CONFIG_NF_CONNTRACK) checks to some header-files. (diff) | |
download | linux-dev-78458e3e08cda2aacaec9fde8c295dfc2f88618a.tar.xz linux-dev-78458e3e08cda2aacaec9fde8c295dfc2f88618a.zip |
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>
Diffstat (limited to 'include/net/netfilter/br_netfilter.h')
-rw-r--r-- | include/net/netfilter/br_netfilter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/br_netfilter.h b/include/net/netfilter/br_netfilter.h index 33533ea852a1..2a613c84d49f 100644 --- a/include/net/netfilter/br_netfilter.h +++ b/include/net/netfilter/br_netfilter.h @@ -55,6 +55,7 @@ static inline struct rtable *bridge_parent_rtable(const struct net_device *dev) struct net_device *setup_pre_routing(struct sk_buff *skb, const struct net *net); +#if IS_ENABLED(CONFIG_NETFILTER) #if IS_ENABLED(CONFIG_IPV6) int br_validate_ipv6(struct net *net, struct sk_buff *skb); unsigned int br_nf_pre_routing_ipv6(void *priv, @@ -73,5 +74,6 @@ br_nf_pre_routing_ipv6(const struct nf_hook_ops *ops, struct sk_buff *skb, return NF_ACCEPT; } #endif +#endif #endif /* _BR_NETFILTER_H_ */ |