From 4a73b93ce489a58c9a2aac4a5f5cd8cfa58ced64 Mon Sep 17 00:00:00 2001 From: "Borislav Petkov (AMD)" Date: Mon, 29 Jun 2026 12:11:20 -0700 Subject: x86/alternative: Drop smp_locks glue This was there to be able to patch out locking instructions when running a SMP kernel build on a UP CPU. The times are long gone when single-CPU x86 machines were relevant so drop that machinery and simplify the code considerably. LOCK_PREFIX needs to stay for when one wants to do a UP build for whatever reason. That'll go away when CONFIG_SMP becomes unconditional. Kill a bunch of leftover, unused prototypes while at it. Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Acked-by: Mike Rapoport (Microsoft) Link: https://lore.kernel.org/r/20260328081634.797552-1-rppt@kernel.org --- tools/objtool/check.c | 1 - tools/objtool/klp-diff.c | 1 - 2 files changed, 2 deletions(-) (limited to 'tools/objtool') diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 10b18cf9c360..5f714e8b383a 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -4644,7 +4644,6 @@ static int validate_ibt(struct objtool_file *file) !strcmp(sec->name, ".kcfi_traps") || !strcmp(sec->name, ".orc_unwind_ip") || !strcmp(sec->name, ".retpoline_sites") || - !strcmp(sec->name, ".smp_locks") || !strcmp(sec->name, ".static_call_sites") || !strcmp(sec->name, "_error_injection_whitelist") || !strcmp(sec->name, "_kprobe_blacklist") || diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index f8787d7d1454..07b7ef34cc92 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -297,7 +297,6 @@ static bool is_special_section(struct section *sec) static const char * const specials[] = { ".altinstructions", ".kcfi_traps", - ".smp_locks", "__bug_table", "__ex_table", "__jump_table", -- cgit