diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-03-12 12:48:49 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-19 11:26:58 +0100 |
commit | 91d5451d97ce35cbd510277fa3b7abf9caa4e34d (patch) | |
tree | 4a3c755880704d84f3f524bac56bb4c07c105494 /arch/x86/entry/entry.S | |
parent | 3f5dbafc2d4651020f45309ca85120b6a8162fd9 (diff) |
x86/stackprotector/64: Only export __ref_stack_chk_guard on CONFIG_SMP
The __ref_stack_chk_guard symbol doesn't exist on UP:
<stdin>:4:15: error: ‘__ref_stack_chk_guard’ undeclared here (not in a function)
Fix the #ifdef around the entry.S export.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Uros Bizjak <ubizjak@gmail.com>
Link: https://lore.kernel.org/r/20250123190747.745588-8-brgerst@gmail.com
Diffstat (limited to 'arch/x86/entry/entry.S')
-rw-r--r-- | arch/x86/entry/entry.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/entry/entry.S b/arch/x86/entry/entry.S index 088f91f76edb..d3caa31240ed 100644 --- a/arch/x86/entry/entry.S +++ b/arch/x86/entry/entry.S @@ -64,6 +64,6 @@ THUNK warn_thunk_thunk, __warn_thunk * entirely in the C code, and use an alias emitted by the linker script * instead. */ -#ifdef CONFIG_STACKPROTECTOR +#if defined(CONFIG_STACKPROTECTOR) && defined(CONFIG_SMP) EXPORT_SYMBOL(__ref_stack_chk_guard); #endif |