]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/entry: Add __init to ia32_emulation_override_cmdline()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 10 Dec 2024 15:16:50 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:12 +0000 (14:39 +0200)
commitf5852872eb298943062ab6c1c68e39c041aa255b
tree601f38a2c7562882403a11d01eba933c6b85ac1a
parent52e513a8850c39d320a1d14cd9ecc44b9c0803ba
x86/entry: Add __init to ia32_emulation_override_cmdline()

[ Upstream commit d55f31e29047f2f987286d55928ae75775111fe7 ]

ia32_emulation_override_cmdline() is an early_param() arg and these
are only needed at boot time. In fact, all other early_param() functions
in arch/x86 seem to have '__init' annotation and
ia32_emulation_override_cmdline() is the only exception.

Fixes: a11e097504ac ("x86: Make IA32_EMULATION boot time configurable")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/all/20241210151650.1746022-1-vkuznets%40redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/entry/common.c