diff options
| author | Yu Peng <pengyu@kylinos.cn> | 2025-10-30 20:37:57 +0800 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2025-10-30 14:33:31 +0100 |
| commit | ca8313fd83399ea1d18e695c2ae9b259985c9e1f (patch) | |
| tree | e09d1052be6c84cf78ce9c676b6c087eb755f8b8 /arch/x86/kernel/cpu/microcode/intel.c | |
| parent | 8d171045069c804e5ffaa18be590c42c6af0cf3f (diff) | |
x86/microcode: Mark early_parse_cmdline() as __init
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
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/intel.c')
0 files changed, 0 insertions, 0 deletions
