[<prev] [next>] [day] [month] [year] [list]
Message-ID: <173860691347.10177.12758665660119885979.tip-bot2@tip-bot2>
Date: Mon, 03 Feb 2025 18:21:53 -0000
From: "tip-bot2 for Vitaly Kuznetsov" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Vitaly Kuznetsov <vkuznets@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Nikolay Borisov <nik.borisov@...e.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject:
[tip: x86/misc] x86/entry: Add __init to ia32_emulation_override_cmdline()
The following commit has been merged into the x86/misc branch of tip:
Commit-ID: b2f10aa2eb18d289e48097e0ed973e714322175b
Gitweb: https://git.kernel.org/tip/b2f10aa2eb18d289e48097e0ed973e714322175b
Author: Vitaly Kuznetsov <vkuznets@...hat.com>
AuthorDate: Tue, 10 Dec 2024 16:16:50 +01:00
Committer: Dave Hansen <dave.hansen@...ux.intel.com>
CommitterDate: Mon, 03 Feb 2025 08:00:14 -08:00
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 <vkuznets@...hat.com>
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
Reviewed-by: Nikolay Borisov <nik.borisov@...e.com>
Link: https://lore.kernel.org/all/20241210151650.1746022-1-vkuznets%40redhat.com
---
arch/x86/entry/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c
index 94941c5..51efd2d 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);
}
Powered by blists - more mailing lists