]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: export: Stub EXPORT_SYMBOL with __DISABLE_EXPORTS
authorQuentin Perret <qperret@google.com>
Wed, 3 Feb 2021 14:19:30 +0000 (14:19 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 3 Feb 2021 16:42:57 +0000 (16:42 +0000)
commit3bff5337b565ddff8ab188f750390f5f31677b2d
treeeedb4eb10c0c6eb4ea4a029bf7dcc3b577a9b9cc
parent31fd972307229208cb2366b838801316845f3f41
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
include/asm-generic/export.h