Patchwork : CONFIG_BRIDGE_IGMP_SNOOPING must depend on CONFIG_INET

login
register
mail settings
Submitter Henne
Date March 13, 2010, 9:10 p.m.
Message ID <1268514611-7930-1-git-send-email-henne@nachtwindheim.de>
Download mbox | patch
Permalink /patch/47720/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Henne - March 13, 2010, 9:10 p.m.
Linking the kernel fails with the the following error message,
if CONFIG_BRIDGE_IGMP_SNOOPING is set and CONFIG_INET is not set.

net/built-in.o: In function `br_multicast_alloc_query':
br_multicast.c:(.text+0x52045): undefined reference to `ip_send_check'

This patch is tested.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>

---
 net/bridge/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - March 14, 2010, 12:19 a.m.
From: Henrik Kretzschmar <henne@nachtwindheim.de>
Date: Sat, 13 Mar 2010 22:10:11 +0100

> Linking the kernel fails with the the following error message,
> if CONFIG_BRIDGE_IGMP_SNOOPING is set and CONFIG_INET is not set.
> 
> net/built-in.o: In function `br_multicast_alloc_query':
> br_multicast.c:(.text+0x52045): undefined reference to `ip_send_check'
> 
> This patch is tested.
> 
> Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>

This has been fixed for some time in the net-2.6 tree
and now Linus just pulled that tree in so his tree
has the fix too.
--
To unsubscribe from this list: send the line "unsubscribe netdev" 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/bridge/Kconfig b/net/bridge/Kconfig
index 19a6b96..52ef2dc 100644
--- a/net/bridge/Kconfig
+++ b/net/bridge/Kconfig
@@ -34,7 +34,7 @@  config BRIDGE
 
 config BRIDGE_IGMP_SNOOPING
 	bool "IGMP snooping"
-	depends on BRIDGE
+	depends on BRIDGE && INET
 	default y
 	---help---
 	  If you say Y here, then the Ethernet bridge will be able selectively