Fixing build breakage after "Merge branch 'Propagate-extack-for-switchdev-LANs-from-DSA'"
Subsystems (4)
cover Fixing build breakage after "Merge branch 'Propagate-extack-for-switchdev-LANs-from-DSA'"
From: Vladimir Oltean <[email protected]>
There were two build issues in the 'Propagate extack for switchdev VLANs from DSA', both related to function prototypes not updated for some stub definitions when CONFIG_SWITCHDEV=n and CONFIG_BRIDGE_VLAN_FILTERING=n.
Vladimir Oltean (2):
net: bridge: fix switchdev_port_attr_set stub when CONFIG_SWITCHDEV=n
net: bridge: fix br_vlan_filter_toggle stub when
CONFIG_BRIDGE_VLAN_FILTERING=n
include/net/switchdev.h | 3 ++- net/bridge/br_private.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 net: bridge: fix switchdev_port_attr_set stub when CONFIG_SWITCHDEV=n
From: Vladimir Oltean <[email protected]>
The switchdev_port_attr_set function prototype was updated only for the case where CONFIG_SWITCHDEV=y|m, leaving a prototype mismatch with the stub definition for the disabled case. This results in a build error, so update that function too.
--- include/net/switchdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/net/switchdev.h +2 -1
@@ -296,7 +296,8 @@ static inline void switchdev_deferred_process(void) }static inline int switchdev_port_attr_set (struct net_device *dev, -const struct switchdev_attr *attr) +const struct switchdev_attr *attr, +struct netlink_ext_ack *extack) {return -EOPNOTSUPP ; }
Signature · 1 line
2.25.1
PATCH 2/2 net: bridge: fix br_vlan_filter_toggle stub when CONFIG_BRIDGE_VLAN_FILTERING=n
In reply to Vladimir OlteanFrom: Vladimir Oltean <[email protected]>
The prototype of br_vlan_filter_toggle was updated to include a netlink extack, but the stub definition wasn't, which results in a build error when CONFIG_BRIDGE_VLAN_FILTERING=n.
--- net/bridge/br_private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/bridge/br_private.h +2 -1
@@ -1265,7 +1265,8 @@ static inline u16 br_get_pvid(const struct net_bridge_vlan_group *vg) }static inline int br_vlan_filter_toggle (struct net_bridge *br, -unsigned long val) +unsigned long val, +struct netlink_ext_ack *extack) {return -EOPNOTSUPP ; }
Signature · 1 line
2.25.1
This series was applied to netdev/net-next.git (refs/heads/master):
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
Quoted 6 lines · On Mon, 15 Feb 2021 23:09:10 +0200 you wrote:
From: Vladimir Oltean <[email protected]>
There were two build issues in the 'Propagate extack for switchdev VLANs from DSA', both related to function prototypes not updated for some stub definitions when
CONFIG_SWITCHDEV=nandCONFIG_BRIDGE_VLAN_FILTERING=n.
Quoted 6 lines
Vladimir Oltean (2):
net: bridge: fixswitchdev_port_attr_setstub whenCONFIG_SWITCHDEV=n
net: bridge: fixbr_vlan_filter_togglestub when
CONFIG_BRIDGE_VLAN_FILTERING=n[...]
Here is the summary with links:
- [net-next,1/2] net: bridge: fix switchdev_port_attr_set stub when CONFIG_SWITCHDEV=n
https://git.kernel.org/netdev/net-next/c/419dfaed7ccc - [net-next,2/2] net: bridge: fix br_vlan_filter_toggle stub when CONFIG_BRIDGE_VLAN_FILTERING=n https://git.kernel.org/netdev/net-next/c/c97f47e3c198
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 6 lines · Vladimir Oltean
From: Vladimir Oltean <[email protected]>
There were two build issues in the 'Propagate extack for switchdev VLANs from DSA', both related to function prototypes not updated for some stub definitions when
CONFIG_SWITCHDEV=nandCONFIG_BRIDGE_VLAN_FILTERING=n.
Quoted 9 lines
Vladimir Oltean (2):
net: bridge: fixswitchdev_port_attr_setstub whenCONFIG_SWITCHDEV=n
net: bridge: fixbr_vlan_filter_togglestub when
CONFIG_BRIDGE_VLAN_FILTERING=ninclude/net/switchdev.h | 3 ++- net/bridge/br_private.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
This was unexpected. :) Thanks for fixing these so quickly. FWIW: