aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2020-05-31 16:42:23 +0900
committerPetr Štetiar <ynezz@true.cz>2020-06-03 16:49:28 +0200
commit6ea87d35c671f50d86cc7f2969e3930e03e3ea31 (patch)
treeb6f262cc06bc9246921e7c1641902e91bb940bfc
parent25641709d87d710c13bd558d681713ae1a5f11b1 (diff)
downloadupstream-6ea87d35c671f50d86cc7f2969e3930e03e3ea31.tar.gz
upstream-6ea87d35c671f50d86cc7f2969e3930e03e3ea31.tar.bz2
upstream-6ea87d35c671f50d86cc7f2969e3930e03e3ea31.zip
bcm47xx: fix brcm-wl module loading
_dma_cache_wback_inv needs to be exported to load wl module successfully. root@OpenWrt:/# insmod wl [ 363.867779] wl: Unknown symbol _dma_cache_wback_inv (err -2) failed to insert /lib/modules/5.4.40/wl.ko Signed-off-by: Sungbo Eo <mans0n@gorani.run> Cc: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r--target/linux/bcm47xx/patches-5.4/999-wl_exports.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/bcm47xx/patches-5.4/999-wl_exports.patch b/target/linux/bcm47xx/patches-5.4/999-wl_exports.patch
index 607c552885..7dcf028ab1 100644
--- a/target/linux/bcm47xx/patches-5.4/999-wl_exports.patch
+++ b/target/linux/bcm47xx/patches-5.4/999-wl_exports.patch
@@ -12,10 +12,11 @@
static int cfe_env;
--- a/arch/mips/mm/cache.c
+++ b/arch/mips/mm/cache.c
-@@ -62,6 +62,8 @@ void (*_dma_cache_wback_inv)(unsigned lo
+@@ -62,6 +62,9 @@ void (*_dma_cache_wback_inv)(unsigned lo
void (*_dma_cache_wback)(unsigned long start, unsigned long size);
void (*_dma_cache_inv)(unsigned long start, unsigned long size);
++EXPORT_SYMBOL(_dma_cache_wback_inv);
+EXPORT_SYMBOL(_dma_cache_inv);
+
#endif /* CONFIG_DMA_NONCOHERENT */