mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] arch/x86/microcode: Mark early_parse_cmdline() as __init
@ 2025-10-29  8:16 Yu Peng
  2025-10-29 12:38 ` Borislav Petkov
  2025-10-30 12:37 ` [PATCH v4] " Yu Peng
  0 siblings, 2 replies; 6+ messages in thread
From: Yu Peng @ 2025-10-29  8:16 UTC (permalink / raw)
  To: bp, tglx, mingo, dave.hansen, x86; +Cc: hpa, linux-kernel, Yu Peng

From: Yu Peng <pengyu@kylinos.com>

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.

Signed-off-by: Yu Peng <pengyu@kylinos.com>
---
 arch/x86/kernel/cpu/microcode/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Changes in v2:
  - Resend to add correct email.
  - No code changes.
  
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index d7baec8ec0b4..ccc83b0bf63c 100644
--- a/arch/x86/kernel/cpu/microcode/core.c
+++ b/arch/x86/kernel/cpu/microcode/core.c
@@ -136,7 +136,7 @@ bool __init microcode_loader_disabled(void)
 	return dis_ucode_ldr;
 }
 
-static void early_parse_cmdline(void)
+static void __init early_parse_cmdline(void)
 {
 	char cmd_buf[64] = {};
 	char *s, *p = cmd_buf;
-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-30 20:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-29  8:16 [PATCH v2] arch/x86/microcode: Mark early_parse_cmdline() as __init Yu Peng
2025-10-29 12:38 ` Borislav Petkov
2025-10-30  5:03   ` Yu Peng
2025-10-30 13:23     ` Borislav Petkov
2025-10-30 12:37 ` [PATCH v4] " Yu Peng
2025-10-30 20:21   ` [tip: x86/microcode] x86/microcode: " tip-bot2 for Yu Peng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®