netfilter: add missing IS_ENABLED(CONFIG_BRIDGE_NETFILTER) checks to header-file.
authorJeremy Sowden <jeremy@azazel.net>
Wed, 7 Aug 2019 14:17:00 +0000 (15:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 13 Aug 2019 10:14:49 +0000 (12:14 +0200)
commit9211bfbff80a7604273086fec5685efcdc10be2b
tree3c339bd3123b3a8f5d8299a0e7176a2843e47f14
parenta1b2f04ea527397fcacacd09e0d690927feef429
netfilter: add missing IS_ENABLED(CONFIG_BRIDGE_NETFILTER) checks to header-file.

br_netfilter.h defines inline functions that use an enum constant and
struct member that are only defined if CONFIG_BRIDGE_NETFILTER is
enabled.  Added preprocessor checks to ensure br_netfilter.h will
compile if CONFIG_BRIDGE_NETFILTER is disabled.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/br_netfilter.h