From: Rafał Miłecki Date: Thu, 7 Oct 2021 13:00:52 +0000 (+0200) Subject: kernel: export switch_generic_set_link() symbol X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e4e410733f3b0cad09d3a235eec0b04f4068c331;p=openwrt%2Fstaging%2Fneocturne.git 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 --- 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)