netfilter: nft_reject_bridge: fix build errors due to code movement
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 16 Nov 2020 03:42:03 +0000 (19:42 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 22 Nov 2020 12:44:51 +0000 (13:44 +0100)
Fix build errors in net/bridge/netfilter/nft_reject_bridge.ko
by selecting NF_REJECT_IPV4, which provides the missing symbols.

ERROR: modpost: "nf_reject_skb_v4_tcp_reset" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!
ERROR: modpost: "nf_reject_skb_v4_unreach" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!

Fixes: fa538f7cf05a ("netfilter: nf_reject: add reject skbuff creation helpers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/Kconfig

index e4d287a..ac53721 100644 (file)
@@ -18,6 +18,8 @@ config NFT_BRIDGE_META
 config NFT_BRIDGE_REJECT
        tristate "Netfilter nf_tables bridge reject support"
        depends on NFT_REJECT
+       depends on NF_REJECT_IPV4
+       depends on NF_REJECT_IPV6
        help
          Add support to reject packets.