Re: [PATCH v2] arch/x86/microcode: Mark early_parse_cmdline() as __init
From: Yu Peng
Date: Thu Oct 30 2025 - 01:04:23 EST
在 2025/10/29 20:38, Borislav Petkov 写道:
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?
I found a minimal reproducer: i386_defconfig enable these two options:
CONFIG_GCOV_KERNEL=y
CONFIG_GCOV_PROFILE_ALL=y
On my toolchain (GCC 13.2), this combination instruments the function and prevents it from being inlined, which then triggers the modpost error.
Thanks,
--
Regards, Yu Peng