summaryrefslogtreecommitdiffstats
path: root/net/rds/ib_frmr.c
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@microsoft.com>2021-05-14 03:53:48 +0200
committerDavid S. Miller <davem@davemloft.net>2021-05-14 10:38:59 -0700
commit30515832e987597eae354f6ffcdb3374bdfde16d (patch)
tree96c302493ac18b58899394d3f087996b1050e235 /net/rds/ib_frmr.c
parentbbc6f2cca74e548914a7705f5c39549c28ab8815 (diff)
downloadlinux-stable-30515832e987597eae354f6ffcdb3374bdfde16d.tar.gz
linux-stable-30515832e987597eae354f6ffcdb3374bdfde16d.tar.bz2
linux-stable-30515832e987597eae354f6ffcdb3374bdfde16d.zip
net: bridge: fix build when IPv6 is disabled
The br_ip6_multicast_add_router() prototype is defined only when CONFIG_IPV6 is enabled, but the function is always referenced, so there is this build error with CONFIG_IPV6 not defined: net/bridge/br_multicast.c: In function ‘__br_multicast_enable_port’: net/bridge/br_multicast.c:1743:3: error: implicit declaration of function ‘br_ip6_multicast_add_router’; did you mean ‘br_ip4_multicast_add_router’? [-Werror=implicit-function-declaration] 1743 | br_ip6_multicast_add_router(br, port); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | br_ip4_multicast_add_router net/bridge/br_multicast.c: At top level: net/bridge/br_multicast.c:2804:13: warning: conflicting types for ‘br_ip6_multicast_add_router’ 2804 | static void br_ip6_multicast_add_router(struct net_bridge *br, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bridge/br_multicast.c:2804:13: error: static declaration of ‘br_ip6_multicast_add_router’ follows non-static declaration net/bridge/br_multicast.c:1743:3: note: previous implicit declaration of ‘br_ip6_multicast_add_router’ was here 1743 | br_ip6_multicast_add_router(br, port); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this build error by moving the definition out of the #ifdef. Fixes: a3c02e769efe ("net: bridge: mcast: split multicast router state for IPv4 and IPv6") Signed-off-by: Matteo Croce <mcroce@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib_frmr.c')
0 files changed, 0 insertions, 0 deletions