YueHaibing
2019-Jul-09 07:01 UTC
[Bridge] [PATCH net-next] netfilter: nft_meta: Fix build error
If NFT_BRIDGE_META is y and NF_TABLES is m, building fails: net/bridge/netfilter/nft_meta_bridge.o: In function `nft_meta_bridge_get_init': nft_meta_bridge.c:(.text+0xd0): undefined reference to `nft_parse_register' nft_meta_bridge.c:(.text+0xec): undefined reference to `nft_validate_register_store' Reported-by: Hulk Robot <hulkci at huawei.com> Fixes: 30e103fe24de ("netfilter: nft_meta: move bridge meta keys into nft_meta_bridge") Signed-off-by: YueHaibing <yuehaibing at huawei.com> --- net/bridge/netfilter/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bridge/netfilter/Kconfig b/net/bridge/netfilter/Kconfig index fbc7085..ca3214f 100644 --- a/net/bridge/netfilter/Kconfig +++ b/net/bridge/netfilter/Kconfig @@ -12,6 +12,7 @@ if NF_TABLES_BRIDGE config NFT_BRIDGE_META tristate "Netfilter nf_table bridge meta support" + depends on NF_TABLES help Add support for bridge dedicated meta key. -- 2.7.4
Pablo Neira Ayuso
2019-Jul-18 18:30 UTC
[Bridge] [PATCH net-next] netfilter: nft_meta: Fix build error
On Tue, Jul 09, 2019 at 03:01:26PM +0800, YueHaibing wrote:> If NFT_BRIDGE_META is y and NF_TABLES is m, building fails: > > net/bridge/netfilter/nft_meta_bridge.o: In function `nft_meta_bridge_get_init': > nft_meta_bridge.c:(.text+0xd0): undefined reference to `nft_parse_register' > nft_meta_bridge.c:(.text+0xec): undefined reference to `nft_validate_register_store'I took this one from Arnd instead: https://patchwork.ozlabs.org/patch/1130262/ Thanks.