From: Nikolay Aleksandrov Date: Mon, 13 Jul 2020 07:55:46 +0000 (+0300) Subject: net: bridge: fix undefined br_vlan_can_enter_range in tunnel code X-Git-Tag: v5.9-rc1~133^2~279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=528ae84a34ffd40da5d3fbff740d28d6dc2c8f8a;p=thirdparty%2Fkernel%2Flinux.git net: bridge: fix undefined br_vlan_can_enter_range in tunnel code If bridge vlan filtering is not defined we won't have br_vlan_can_enter_range and thus will get a compile error as was reported by Stephen and the build bot. So let's define a stub for when vlan filtering is not used. Fixes: 94339443686b ("net: bridge: notify on vlan tunnel changes done via the old api") Reported-by: Stephen Rothwell Signed-off-by: Nikolay Aleksandrov Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index a6f348bea29a7..baa1500f384fc 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -1200,6 +1200,12 @@ static inline void br_vlan_notify(const struct net_bridge *br, int cmd) { } + +static inline bool br_vlan_can_enter_range(const struct net_bridge_vlan *v_curr, + const struct net_bridge_vlan *range_end) +{ + return true; +} #endif /* br_vlan_options.c */