netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ila: add NETFILTER dependency
@ 2015-12-18 14:37 Arnd Bergmann
  2015-12-18 17:26 ` Pablo Neira Ayuso
  2015-12-18 19:19 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2015-12-18 14:37 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-kernel, linux-arm-kernel, Tom Herbert,
	netfilter-devel

The recently added generic ILA translation facility fails to
build when CONFIG_NETFILTER is disabled:

net/ipv6/ila/ila_xlat.c:229:20: warning: 'struct nf_hook_state' declared inside parameter list
net/ipv6/ila/ila_xlat.c:235:27: error: array type has incomplete element type 'struct nf_hook_ops'
 static struct nf_hook_ops ila_nf_hook_ops[] __read_mostly = {

This adds an explicit Kconfig dependency to avoid that case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 7f00feaf1076 ("ila: Add generic ILA translation facility")

diff --git a/net/ipv6/Kconfig b/net/ipv6/Kconfig
index 983bb999738c..bb7dabe2ebbf 100644
--- a/net/ipv6/Kconfig
+++ b/net/ipv6/Kconfig
@@ -94,6 +94,7 @@ config IPV6_MIP6
 
 config IPV6_ILA
 	tristate "IPv6: Identifier Locator Addressing (ILA)"
+	depends on NETFILTER
 	select LWTUNNEL
 	---help---
 	  Support for IPv6 Identifier Locator Addressing (ILA).

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-18 20:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-18 14:37 [PATCH] ila: add NETFILTER dependency Arnd Bergmann
2015-12-18 17:26 ` Pablo Neira Ayuso
2015-12-18 18:09   ` Florian Westphal
2015-12-18 20:37     ` Pablo Neira Ayuso
2015-12-18 19:19 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).