mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
asm-generic: export: Stub EXPORT_SYMBOL with __DISABLE_EXPORTS
It is currently possible to stub EXPORT_SYMBOL() macros in C code using __DISABLE_EXPORTS, which is necessary to run in constrained environments such as the EFI stub or the decompressor. But this currently doesn't apply to exports from assembly, which can lead to somewhat confusing situations. Consolidate the __DISABLE_EXPORTS infrastructure by checking it from asm-generic/export.h as well. Signed-off-by: Quentin Perret <qperret@google.com> Acked-by: Will Deacon <will@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210203141931.615898-2-qperret@google.com
This commit is contained in:
committed by
Marc Zyngier
parent
87b26801f0
commit
54effa6532
@@ -33,7 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.macro ___EXPORT_SYMBOL name,val,sec
|
.macro ___EXPORT_SYMBOL name,val,sec
|
||||||
#ifdef CONFIG_MODULES
|
#if defined(CONFIG_MODULES) && !defined(__DISABLE_EXPORTS)
|
||||||
.section ___ksymtab\sec+\name,"a"
|
.section ___ksymtab\sec+\name,"a"
|
||||||
.balign KSYM_ALIGN
|
.balign KSYM_ALIGN
|
||||||
__ksymtab_\name:
|
__ksymtab_\name:
|
||||||
|
Reference in New Issue
Block a user