Patchwork [nftables] nftables: fix compilation when nf-netlink is a module

login
register
mail settings
Submitter Nicolas Dichtel
Date March 6, 2013, 10:26 a.m.
Message ID <1362565597-2391-1-git-send-email-nicolas.dichtel@6wind.com>
Download mbox | patch
Permalink /patch/225473/
State Not Applicable
Headers show

Comments

Nicolas Dichtel - March 6, 2013, 10:26 a.m.
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.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 net/netfilter/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Nicolas Dichtel - March 6, 2013, 11:20 a.m.
Le 06/03/2013 11:26, Nicolas Dichtel a écrit :
> 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.
>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> ---
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 7d1c3c0..acf6705 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -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