Skip to contentSkip to conversation

Fixing build breakage after "Merge branch 'Propagate-extack-for-switchdev-LANs-from-DSA'"

PATCH Applied Vladimir Oltean 3 participants 5 messages Feb 15, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

Fixes dcbdf1350e33 ("net: bridge: propagate extack through switchdev_port_attr_set")
---
 include/net/switchdev.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/net/switchdev.h +2 -1
index 195f62672cc4..9a5426b61ca5 100644
@@ -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
#2 lore raw

PATCH 2/2 net: bridge: fix br_vlan_filter_toggle stub when CONFIG_BRIDGE_VLAN_FILTERING=n

In reply to Vladimir Oltean

From: 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.

Fixes 9e781401cbfc ("net: bridge: propagate extack through store_bridge_parm")
---
 net/bridge/br_private.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/bridge/br_private.h +2 -1
index da71e71fcddc..d7d167e10b70 100644
@@ -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
#3 lore raw
In reply to Vladimir Oltean
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=n and CONFIG_BRIDGE_VLAN_FILTERING=n.

Quoted 6 lines

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

[...]

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

Acked-by on the v1 series
#4 lore raw
In reply to Vladimir Oltean
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=n and CONFIG_BRIDGE_VLAN_FILTERING=n.

Quoted 9 lines

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(-)

This was unexpected. :) Thanks for fixing these so quickly. FWIW: