diff options
| author | Vitaly Kuznetsov <[email protected]> | 2024-12-10 15:16:50 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-19 10:17:37 +0000 |
| commit | d55f31e29047f2f987286d55928ae75775111fe7 (patch) | |
| tree | a0d8339da35c578ca20271509d3bab8952a33160 /arch/x86/entry/common.c | |
| parent | x86/cpufeatures: Warn about unmet CPU feature dependencies (diff) | |
| download | kernel-d55f31e29047f2f987286d55928ae75775111fe7.tar.gz kernel-d55f31e29047f2f987286d55928ae75775111fe7.zip | |
x86/entry: Add __init to ia32_emulation_override_cmdline()
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 <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Link: https://lore.kernel.org/all/20241210151650.1746022-1-vkuznets%40redhat.com
Diffstat (limited to 'arch/x86/entry/common.c')
| -rw-r--r-- | arch/x86/entry/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index 14db5b85114c..3514bf2978ee 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -142,7 +142,7 @@ static __always_inline int syscall_32_enter(struct pt_regs *regs) #ifdef CONFIG_IA32_EMULATION bool __ia32_enabled __ro_after_init = !IS_ENABLED(CONFIG_IA32_EMULATION_DEFAULT_DISABLED); -static int ia32_emulation_override_cmdline(char *arg) +static int __init ia32_emulation_override_cmdline(char *arg) { return kstrtobool(arg, &__ia32_enabled); } |
