OSDN Git Service

bridge: move maybe_deliver_addr() inside #ifdef
authorArnd Bergmann <arnd@arndb.de>
Wed, 25 Jan 2017 22:29:33 +0000 (23:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 04:16:06 +0000 (23:16 -0500)
commit5b9d6b154a622d0481123c1b149afdf377264268
tree5462589fb36bab10f7792155f3fdb6d9650a0f91
parent0901df3aeaee6cb5dde2fd51089786aff6225ebf
bridge: move maybe_deliver_addr() inside #ifdef

The only caller of this new function is inside of an #ifdef checking
for CONFIG_BRIDGE_IGMP_SNOOPING, so we should move the implementation
there too, in order to avoid this harmless warning:

net/bridge/br_forward.c:177:13: error: 'maybe_deliver_addr' defined but not used [-Werror=unused-function]

Fixes: 6db6f0eae605 ("bridge: multicast to unicast")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c