[openwrt/openwrt] kernel: export switch_generic_set_link() symbol
LEDE Commits
lede-commits at lists.infradead.org
Thu Oct 7 06:13:39 PDT 2021
rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e4e410733f3b0cad09d3a235eec0b04f4068c331
commit e4e410733f3b0cad09d3a235eec0b04f4068c331
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Thu Oct 7 15:00:52 2021 +0200
kernel: export switch_generic_set_link() symbol
This fixes:
ERROR: "switch_generic_set_link" [drivers/net/phy/b53/b53_common.ko] undefined!
At some point all packages for swconfig drivers were dropped and targets
were meant to have them built into kernels. It seems b53 (re-)gained its
kmod-switch-bcm53xx however and b53 needs to be built as module.
Fixes: b2cfed48f626 ("Revert "swconfig: fix Broadcom b53 support"")
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
target/linux/generic/files/drivers/net/phy/swconfig.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c
index f506daaf91..a734e57608 100644
--- a/target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/target/linux/generic/files/drivers/net/phy/swconfig.c
@@ -1222,6 +1222,7 @@ switch_generic_set_link(struct switch_dev *dev, int port,
return 0;
}
+EXPORT_SYMBOL_GPL(switch_generic_set_link);
static int __init
swconfig_init(void)
More information about the lede-commits
mailing list