]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: only provide proxy ARP when CONFIG_INET is enabled
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Jan 2015 14:10:27 +0000 (15:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jan 2015 20:08:02 +0000 (15:08 -0500)
commitd65378fde3fd81edfd515fe4e9f24bb2081251ef
treebe3ab86689fe9ac2b2d714038c01e05dbb463a3f
parentc6981bbf9bbdb9d2d2d6bc65f5a294e7eabc7c19
bridge: only provide proxy ARP when CONFIG_INET is enabled

When IPV4 support is disabled, we cannot call arp_send from
the bridge code, which would result in a kernel link error:

net/built-in.o: In function `br_handle_frame_finish':
:(.text+0x59914): undefined reference to `arp_send'
:(.text+0x59a50): undefined reference to `arp_tbl'

This makes the newly added proxy ARP support in the bridge
code depend on the CONFIG_INET symbol and lets the compiler
optimize the code out to avoid the link error.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 1a0e53385473 ("bridge: Add support for IEEE 802.11 Proxy ARP")
Cc: Kyeyoon Park <kyeyoonp@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_input.c