Re: [PATCH v2] arch/x86/microcode: Mark early_parse_cmdline() as __init
From: Borislav Petkov
Date: Wed Oct 29 2025 - 08:38:43 EST
On Wed, Oct 29, 2025 at 04:16:44PM +0800, Yu Peng wrote:
> From: Yu Peng <pengyu@xxxxxxxxxxx>
>
> Fix section mismatch warning reported by modpost:
> .text:early_parse_cmdline() -> .init.data:boot_command_line
How do you trigger this?
CONFIG_DEBUG_SECTION_MISMATCH=y
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
in my config doesn't cause anything.
That's because
$ readelf -s vmlinux | grep early_parse_cmdline
doesn't give anything because my compiler inlines it anyway.
So it must be something about your .config or toolchain or whatnot, which
causes it.
I mean, the patch is obviously correct but I'd still like to know how it
triggers.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette