netfilter: remove CONFIG_NETFILTER checks from headers.
authorJeremy Sowden <jeremy@azazel.net>
Fri, 13 Sep 2019 08:13:16 +0000 (09:13 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 Sep 2019 10:47:36 +0000 (12:47 +0200)
commitf19438bdd4bfbfdaac441034c1aaecf02c116e68
tree377d2cffea5eec5f2f5beefcd6c5fa8038502bf7
parent51a21be42ad8c2a343eb0d44813e38918b6a4df7
netfilter: remove CONFIG_NETFILTER checks from headers.

`struct nf_hook_ops`, `struct nf_hook_state` and the `nf_hookfn`
function typedef appear in function and struct declarations and
definitions in a number of netfilter headers.  The structs and typedef
themselves are defined by linux/netfilter.h but only when
CONFIG_NETFILTER is enabled.  Define them unconditionally and add
forward declarations in order to remove CONFIG_NETFILTER conditionals
from the other headers.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
16 files changed:
include/linux/netfilter.h
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