kernel: export switch_generic_set_link() symbol
authorRafał Miłecki <rafal@milecki.pl>
Thu, 7 Oct 2021 13:00:52 +0000 (15:00 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 7 Oct 2021 13:13:16 +0000 (15:13 +0200)
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@milecki.pl>
target/linux/generic/files/drivers/net/phy/swconfig.c

index f506daaf913a8e5e83847fab7ae3f046f0060200..a734e576080aa6f15701c201e06d5ecfa062420d 100644 (file)
@@ -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)