Commit 8041f2bf authored by Arend van Spriel's avatar Arend van Spriel Committed by Kalle Valo

wifi: brcmfmac: introduce BRCMFMAC exported symbols namespace

Using a namespace variant to make clear it is only intended to be used
by the vendor-specific modules. The symbol will only truly export the
symbols when the driver and consequently the vendor-specific part are
built as kernel modules.
Reviewed-by: default avatarHante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: default avatarFranky Lin <franky.lin@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221129135446.151065-8-arend.vanspriel@broadcom.com
parent 7205f9f2
...@@ -21,6 +21,7 @@ static void __exit brcmf_bca_exit(void) ...@@ -21,6 +21,7 @@ static void __exit brcmf_bca_exit(void)
} }
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_IMPORT_NS(BRCMFMAC);
module_init(brcmf_bca_init); module_init(brcmf_bca_init);
module_exit(brcmf_bca_exit); module_exit(brcmf_bca_exit);
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
#include <net/cfg80211.h> #include <net/cfg80211.h>
#include "fweh.h" #include "fweh.h"
#if IS_MODULE(CONFIG_BRCMFMAC)
#define BRCMF_EXPORT_SYMBOL_GPL(__sym) EXPORT_SYMBOL_NS_GPL(__sym, BRCMFMAC)
#else
#define BRCMF_EXPORT_SYMBOL_GPL(__sym)
#endif
#define TOE_TX_CSUM_OL 0x00000001 #define TOE_TX_CSUM_OL 0x00000001
#define TOE_RX_CSUM_OL 0x00000002 #define TOE_RX_CSUM_OL 0x00000002
......
...@@ -21,6 +21,7 @@ static void __exit brcmf_cyw_exit(void) ...@@ -21,6 +21,7 @@ static void __exit brcmf_cyw_exit(void)
} }
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_IMPORT_NS(BRCMFMAC);
module_init(brcmf_cyw_init); module_init(brcmf_cyw_init);
module_exit(brcmf_cyw_exit); module_exit(brcmf_cyw_exit);
...@@ -109,7 +109,7 @@ int brcmf_fwvid_register_vendor(enum brcmf_fwvendor fwvid, struct module *vmod, ...@@ -109,7 +109,7 @@ int brcmf_fwvid_register_vendor(enum brcmf_fwvendor fwvid, struct module *vmod,
return 0; return 0;
} }
EXPORT_SYMBOL(brcmf_fwvid_register_vendor); BRCMF_EXPORT_SYMBOL_GPL(brcmf_fwvid_register_vendor);
int brcmf_fwvid_unregister_vendor(enum brcmf_fwvendor fwvid, struct module *mod) int brcmf_fwvid_unregister_vendor(enum brcmf_fwvendor fwvid, struct module *mod)
{ {
...@@ -142,7 +142,7 @@ int brcmf_fwvid_unregister_vendor(enum brcmf_fwvendor fwvid, struct module *mod) ...@@ -142,7 +142,7 @@ int brcmf_fwvid_unregister_vendor(enum brcmf_fwvendor fwvid, struct module *mod)
return 0; return 0;
} }
EXPORT_SYMBOL(brcmf_fwvid_unregister_vendor); BRCMF_EXPORT_SYMBOL_GPL(brcmf_fwvid_unregister_vendor);
#else #else
static inline int brcmf_fwvid_request_module(enum brcmf_fwvendor fwvid) static inline int brcmf_fwvid_request_module(enum brcmf_fwvendor fwvid)
{ {
......
...@@ -21,6 +21,7 @@ static void __exit brcmf_wcc_exit(void) ...@@ -21,6 +21,7 @@ static void __exit brcmf_wcc_exit(void)
} }
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_IMPORT_NS(BRCMFMAC);
module_init(brcmf_wcc_init); module_init(brcmf_wcc_init);
module_exit(brcmf_wcc_exit); module_exit(brcmf_wcc_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment