]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/bugs: Use early_param() for spectre_v2_user
authorDavid Kaplan <david.kaplan@amd.com>
Mon, 15 Sep 2025 13:47:00 +0000 (08:47 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 15:07:22 +0000 (17:07 +0200)
commit8edb9e77119be3cdd930e71204ee48c4994b217b
treec7be9fda549b2a0a1e93aba642edd03dce1fe1f4
parent5799d5d8a6c877f03ad5b5a640977053be45059a
x86/bugs: Use early_param() for spectre_v2_user

Most of the mitigations in bugs.c use early_param() to parse their command
line options.  Modify spectre_v2_user to use early_param() for consistency.

Remove spec_v2_user_print_cond() because informing a user about their
cmdline choice isn't very interesting and the chosen mitigation is already
printed in spectre_v2_user_update_mitigation().

Signed-off-by: David Kaplan <david.kaplan@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Link: https://lore.kernel.org/r/20250819192200.2003074-2-david.kaplan@amd.com
arch/x86/kernel/cpu/bugs.c