bcm47xx: fix brcm-wl module loading
authorSungbo Eo <mans0n@gorani.run>
Sun, 31 May 2020 07:42:23 +0000 (16:42 +0900)
committerPetr Štetiar <ynezz@true.cz>
Wed, 3 Jun 2020 14:49:28 +0000 (16:49 +0200)
_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>
target/linux/bcm47xx/patches-5.4/999-wl_exports.patch

index 607c552885eb1c6337765b971b6e06d7f95af035..7dcf028ab14f65454e05467e09ad7824201a36d9 100644 (file)
  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 */