nftables: fix compilation when nf-netlink is a module
Subsystems (2)
PATCH 1/1 nftables: fix compilation when nf-netlink is a module
nftables uses nfnl_[un]lock() and thus depends on CONFIG_NETFILTER_NETLINK. It's not possible to have nftables built-in when CONFIG_NETFILTER_NETLINK is set to m.
--- net/netfilter/Kconfig | 1 + 1 file changed, 1 insertion(+)
net/netfilter/Kconfig +1 -0
@@ -430,6 +430,7 @@ config NETFILTER_XTABLES ip6_tables or arp_tables. config NF_TABLES + depends on NETFILTER_NETLINK tristate "Netfilter nf_tables support" config NFT_PAYLOAD
Signature · 1 line
1.8.0.1
Quoted 6 lines · Nicolas Dichtel
nftables uses nfnl_[un]lock() and thus depends on
CONFIG_NETFILTER_NETLINK. It's not possible to have nftables built-in whenCONFIG_NETFILTER_NETLINKis set to m.Signed-off-by Nicolas Dichtel <[email protected]>---
Please, forget this patch. It introduces a circular dependancy. --
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 1/1 nftables: fix compilation when nf-netlink is a module
nftables uses nfnl_[un]lock() and thus depends on CONFIG_NETFILTER_NETLINK. It's not possible to have nftables built-in when CONFIG_NETFILTER_NETLINK is set to m.
I also add a dependancy between NETFILTER_XTABLES and NFT_COMPAT instead of automatically set NETFILTER_XTABLES when NFT_COMPAT is set. This is to avoid a circular dependency:
net/netfilter/Kconfig:432:error: recursive dependency detected!net/netfilter/Kconfig:432: symbol NF_TABLES depends on NETFILTER_NETLINKnet/netfilter/Kconfig:4: symbol NETFILTER_NETLINK is selected by NETFILTER_NETLINK_ACCTnet/netfilter/Kconfig:7: symbol NETFILTER_NETLINK_ACCT is selected by NETFILTER_XT_MATCH_NFACCTnet/netfilter/Kconfig:1087: symbol NETFILTER_XT_MATCH_NFACCT depends on NETFILTER_XTABLESnet/netfilter/Kconfig:425: symbol NETFILTER_XTABLES is selected by NFT_COMPATnet/netfilter/Kconfig:478: symbol NFT_COMPAT depends on NF_TABLES
---
v2: fix circular dependency
net/netfilter/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/netfilter/Kconfig +2 -1
@@ -430,6 +430,7 @@ config NETFILTER_XTABLES ip6_tables or arp_tables. config NF_TABLES + depends on NETFILTER_NETLINK tristate "Netfilter nf_tables support" config NFT_PAYLOAD
@@ -476,7 +477,7 @@ config NFT_NAT config NFT_COMPAT depends on NF_TABLES - select NETFILTER_XTABLES + depends on NETFILTER_XTABLES tristate "Netfilter x_tables over nf_tables module" help This is required if you intend to use any of existing
Signature · 1 line
1.8.0.1
Quoted 8 lines · Nicolas Dichtel
nftables uses nfnl_[un]lock() and thus depends on
CONFIG_NETFILTER_NETLINK. It's not possible to have nftables built-in whenCONFIG_NETFILTER_NETLINKis set to m.I also add a dependancy between
NETFILTER_XTABLESandNFT_COMPATinstead of automatically setNETFILTER_XTABLESwhenNFT_COMPATis set. This is to avoid a circular dependency:
Quoted 7 lines
net/netfilter/Kconfig:432:error: recursive dependency detected!
net/netfilter/Kconfig:432: symbolNF_TABLESdepends onNETFILTER_NETLINKnet/netfilter/Kconfig:4: symbolNETFILTER_NETLINKis selected byNETFILTER_NETLINK_ACCTnet/netfilter/Kconfig:7: symbolNETFILTER_NETLINK_ACCTis selected byNETFILTER_XT_MATCH_NFACCTnet/netfilter/Kconfig:1087: symbolNETFILTER_XT_MATCH_NFACCTdepends onNETFILTER_XTABLESnet/netfilter/Kconfig:425: symbolNETFILTER_XTABLESis selected byNFT_COMPATnet/netfilter/Kconfig:478: symbolNFT_COMPATdepends onNF_TABLES
Applied, thanks Nicolas.