Skip to content

Commit 3ef4a51

Browse files
Yu Penggregkh
authored andcommitted
x86/microcode: Mark early_parse_cmdline() as __init
[ Upstream commit ca8313f ] Fix section mismatch warning reported by modpost: .text:early_parse_cmdline() -> .init.data:boot_command_line The function early_parse_cmdline() is only called during init and accesses init data, so mark it __init to match its usage. [ bp: This happens only when the toolchain fails to inline the function and I haven't been able to reproduce it with any toolchain I'm using. Patch is obviously correct regardless. ] Signed-off-by: Yu Peng <pengyu@kylinos.cn> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/all/20251030123757.1410904-1-pengyu@kylinos.cn Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 63859f6 commit 3ef4a51

File tree

1 file changed

+1
-1
lines changed
  • arch/x86/kernel/cpu/microcode

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/microcode/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ bool __init microcode_loader_disabled(void)
136136
return dis_ucode_ldr;
137137
}
138138

139-
static void early_parse_cmdline(void)
139+
static void __init early_parse_cmdline(void)
140140
{
141141
char cmd_buf[64] = {};
142142
char *s, *p = cmd_buf;

0 commit comments

Comments
 (0)