From: Ronan Pigott Date: Sun, 5 Apr 2026 17:28:25 +0000 (-0700) Subject: x86/split_lock: Don't warn about unknown split_lock_detect parameter X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbe80bd6993a059ca366a3561051b419f3cd2b29;p=thirdparty%2Flinux.git x86/split_lock: Don't warn about unknown split_lock_detect parameter The split_lock_detect command line parameter is handled in sld_setup() shortly after cpu_parse_early_param() but still before parse_early_param(). Add a dummy parsing function so that parse_early_param() doesn't later complain about the "unknown" parameter split_lock_detect=, and pass it along to init. [ bp: Massage commit message. ] Signed-off-by: Ronan Pigott Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260405181807.3906-1-ronan@rjp.ie --- diff --git a/arch/x86/kernel/cpu/bus_lock.c b/arch/x86/kernel/cpu/bus_lock.c index 660aa9aa8bec2..bba28607a59a6 100644 --- a/arch/x86/kernel/cpu/bus_lock.c +++ b/arch/x86/kernel/cpu/bus_lock.c @@ -132,6 +132,12 @@ static void __init sld_state_setup(void) sld_state = state; } +static __init int setup_split_lock_detect(char *arg) +{ + return 1; +} +__setup("split_lock_detect=", setup_split_lock_detect); + static void __init __split_lock_setup(void) { if (!split_lock_verify_msr(false)) {