net: dsa: Fix dependencies with HSR
Subsystems (3)
PATCH 1/1 net: dsa: Fix dependencies with HSR
The core DSA framework uses hsr_is_master() which would not resolve to a valid symbol if HSR is built-into the kernel and DSA is a module.
---
David, Jakub,
This showed up in linux-next which means it will show up in Linus' tree soon as well when your pull request gets sent out.
net/dsa/Kconfig | 1 + 1 file changed, 1 insertion(+)
net/dsa/Kconfig +1 -0
@@ -9,6 +9,7 @@ menuconfig NET_DSA tristate "Distributed Switch Architecture" depends on HAVE_NET_DSA depends on BRIDGE || BRIDGE=n + depends on HSR || HSR=n select GRO_CELLS select NET_SWITCHDEV select PHYLINK
Signature · 1 line
2.25.1
Quoted 11 lines · Florian Fainelli
The core DSA framework uses
hsr_is_master()which would not resolve to a valid symbol if HSR is built-into the kernel and DSA is a module.Fixes 18596f504a3e ("net: dsa: add support for offloading HSR")Reported-by kernel test robot <[email protected]>Signed-off-by Florian Fainelli <[email protected]>---
David, Jakub,This showed up in linux-next which means it will show up in Linus' tree soon as well when your pull request gets sent out.
I had initially considered making is_hsr_master() a static inline that would compare dev->dev.type->name with "hsr" since the HSR master would set a custom dev_type, however the xrs700x driver would still fail to link because it calls hsr_get_version() and for that one there is no easy solution.
Signature · 1 line
Florian
George McCollister
Reviewed-byQuoted 13 lines · Florian Fainelli
Quoted 9 lines · Florian Fainelli
The core DSA framework uses
hsr_is_master()which would not resolve to a valid symbol if HSR is built-into the kernel and DSA is a module.Fixes 18596f504a3e ("net: dsa: add support for offloading HSR")Reported-by kernel test robot <[email protected]>Signed-off-by Florian Fainelli <[email protected]>---
David, Jakub,
Quoted 8 lines
Quoted 2 lines
This showed up in linux-next which means it will show up in Linus' tree soon as well when your pull request gets sent out.
I had initially considered making
is_hsr_master()a static inline that would comparedev->dev.type->namewith "hsr" since the HSR master would set a customdev_type, however the xrs700x driver would still fail to link because it callshsr_get_version()and for that one there is no easy solution.
Thanks for looking into this. It's not something I've run into before. It didn't occur to me what would happen if HSR was a module. I'll look out for this in the future.
Sorry for the inconvenience.
-George
Quoted 2 lines
--
Florian
Quoted 7 lines · Florian Fainelli
The core DSA framework uses
hsr_is_master()which would not resolve to a valid symbol if HSR is built-into the kernel and DSA is a module.Fixes 18596f504a3e ("net: dsa: add support for offloading HSR")Reported-by kernel test robot <[email protected]>Signed-off-by Florian Fainelli <[email protected]>---
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 8 lines · On Fri, 19 Feb 2021 21:12:21 -0800 you wrote:
The core DSA framework uses
hsr_is_master()which would not resolve to a valid symbol if HSR is built-into the kernel and DSA is a module.Fixes 18596f504a3e ("net: dsa: add support for offloading HSR")Reported-by kernel test robot <[email protected]>Signed-off-by Florian Fainelli <[email protected]>[...]
Here is the summary with links:
- [net-next] net: dsa: Fix dependencies with HSR
https://git.kernel.org/netdev/net/c/94ead4caa061
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html