mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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: Hante Meuleman <hante.meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> Reviewed-by: Franky Lin <franky.lin@broadcom.com> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20221129135446.151065-8-arend.vanspriel@broadcom.com
This commit is contained in:
parent
7205f9f2fc
commit
8041f2bffb
|
|
@ -21,6 +21,7 @@ static void __exit brcmf_bca_exit(void)
|
|||
}
|
||||
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_IMPORT_NS(BRCMFMAC);
|
||||
|
||||
module_init(brcmf_bca_init);
|
||||
module_exit(brcmf_bca_exit);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
#include <net/cfg80211.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_RX_CSUM_OL 0x00000002
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ static void __exit brcmf_cyw_exit(void)
|
|||
}
|
||||
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_IMPORT_NS(BRCMFMAC);
|
||||
|
||||
module_init(brcmf_cyw_init);
|
||||
module_exit(brcmf_cyw_exit);
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ int brcmf_fwvid_register_vendor(enum brcmf_fwvendor fwvid, struct module *vmod,
|
|||
|
||||
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)
|
||||
{
|
||||
|
|
@ -142,7 +142,7 @@ int brcmf_fwvid_unregister_vendor(enum brcmf_fwvendor fwvid, struct module *mod)
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(brcmf_fwvid_unregister_vendor);
|
||||
BRCMF_EXPORT_SYMBOL_GPL(brcmf_fwvid_unregister_vendor);
|
||||
#else
|
||||
static inline int brcmf_fwvid_request_module(enum brcmf_fwvendor fwvid)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ static void __exit brcmf_wcc_exit(void)
|
|||
}
|
||||
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_IMPORT_NS(BRCMFMAC);
|
||||
|
||||
module_init(brcmf_wcc_init);
|
||||
module_exit(brcmf_wcc_exit);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user