Skip to content

Commit 91d5451

Browse files
author
Ingo Molnar
committed
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 <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Uros Bizjak <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3f5dbaf commit 91d5451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/entry/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ THUNK warn_thunk_thunk, __warn_thunk
6464
* entirely in the C code, and use an alias emitted by the linker script
6565
* instead.
6666
*/
67-
#ifdef CONFIG_STACKPROTECTOR
67+
#if defined(CONFIG_STACKPROTECTOR) && defined(CONFIG_SMP)
6868
EXPORT_SYMBOL(__ref_stack_chk_guard);
6969
#endif

0 commit comments

Comments
 (0)