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 <ronan@rjp.ie>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260405181807.3906-1-ronan@rjp.ie
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)) {