linux/arch/x86/entry
Ingo Molnar 7124a9b682 x86/stackprotector/64: Only export __ref_stack_chk_guard on CONFIG_SMP
[ Upstream commit 91d5451d97 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-04 14:41:56 +02:00
..
syscalls syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-07-05 09:34:04 +02:00
vdso kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00
vsyscall x86/ptrace: Cleanup the definition of the pt_regs structure 2025-01-09 13:31:51 +01:00
calling.h x86/entry: Fix ORC unwinder for PUSH_REGS with save_ret=1 2025-04-10 14:37:31 +02:00
common.c x86/bhi: Add support for clearing branch history at syscall entry 2024-04-10 16:36:07 +02:00
entry.S x86/stackprotector/64: Only export __ref_stack_chk_guard on CONFIG_SMP 2025-06-04 14:41:56 +02:00
entry_32.S x86/entry_32: Clear CPU buffers after register restore in NMI return 2024-10-22 15:46:34 +02:00
entry_64.S x86/its: Align RETs in BHB clear sequence to avoid thunking 2025-05-18 08:24:11 +02:00
entry_64_compat.S x86/bhi: Avoid warning in #DB handler due to BHI mitigation 2024-07-18 13:21:27 +02:00
Makefile x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2022-08-04 12:23:50 +02:00
syscall_32.c x86/syscall: Don't force use of indirect calls for system calls 2024-04-10 16:36:07 +02:00
syscall_64.c x86/syscall: Don't force use of indirect calls for system calls 2024-04-10 16:36:07 +02:00
syscall_x32.c x86/syscall: Don't force use of indirect calls for system calls 2024-04-10 16:36:07 +02:00
thunk_32.S x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y 2022-08-04 12:23:50 +02:00
thunk_64.S x86/entry: Move thunk restore code into thunk functions 2023-06-07 09:54:45 -07:00