* [PATCH] x86/split_lock: Don't warn about unknown parameter
@ 2026-04-05 8:30 Ronan Pigott
2026-04-05 11:37 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Ronan Pigott @ 2026-04-05 8:30 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen; +Cc: x86, linux-kernel, Ronan Pigott
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 __setup function so that parse_early_param doesn't later
complain about the "unknown" parameter split_lock_detect=, and pass it
along to init.
---
arch/x86/kernel/cpu/bus_lock.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/x86/kernel/cpu/bus_lock.c b/arch/x86/kernel/cpu/bus_lock.c
index fb166662bc0d..c8fec79ed557 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)) {
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86/split_lock: Don't warn about unknown parameter
2026-04-05 8:30 [PATCH] x86/split_lock: Don't warn about unknown parameter Ronan Pigott
@ 2026-04-05 11:37 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2026-04-05 11:37 UTC (permalink / raw)
To: Ronan Pigott; +Cc: tglx, mingo, dave.hansen, x86, linux-kernel
On Sun, Apr 05, 2026 at 01:30:50AM -0700, Ronan Pigott wrote:
> The split_lock_detect command line parameter is handled in sld_setup
> shortly after cpu_parse_early_param but still before parse_early_param.
Please end function names with parentheses.
When a function is mentioned in the changelog, either the text body or the
subject line, please use the format 'function_name()'. Omitting the
brackets after the function name can be ambiguous.
> Add a dummy __setup function so that parse_early_param doesn't later
> complain about the "unknown" parameter split_lock_detect=, and pass it
> along to init.
verify_tags: WARNING: Sender [Ronan Pigott <ronan@rjp.ie>] hasn't signed off on the patch!
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-05 11:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-05 8:30 [PATCH] x86/split_lock: Don't warn about unknown parameter Ronan Pigott
2026-04-05 11:37 ` Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®