]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
netfilter: add missing IS_ENABLED(CONFIG_NF_TABLES) check to header-file.
authorJeremy Sowden <jeremy@azazel.net>
Wed, 7 Aug 2019 14:17:01 +0000 (15:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 13 Aug 2019 10:14:58 +0000 (12:14 +0200)
commit47e640af2e492cc28778dd6f894d50313f7fba75
tree5627461a4e746fd9c0c22f9636e819a494d32e74
parent9211bfbff80a7604273086fec5685efcdc10be2b
netfilter: add missing IS_ENABLED(CONFIG_NF_TABLES) check to header-file.

nf_tables.h defines an API comprising several inline functions and
macros that depend on the nft member of struct net.  However, this is
only defined is CONFIG_NF_TABLES is enabled.  Added preprocessor checks
to ensure that nf_tables.h will compile if CONFIG_NF_TABLES is disabled.

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