From: Yu Peng <pengyu@kylinos.cn>
To: Borislav Petkov <bp@alien8.de>
Cc: tglx@linutronix.de, mingo@redhat.com,
dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com,
linux-kernel@vger.kernel.org, Yu Peng <pengyu@kylinos.com>
Subject: Re: [PATCH v2] arch/x86/microcode: Mark early_parse_cmdline() as __init
Date: Thu, 30 Oct 2025 13:03:52 +0800 [thread overview]
Message-ID: <2d33a48f-a43a-4ed6-a903-aff8184eebf3@kylinos.cn> (raw)
In-Reply-To: <20251029123823.GAaQIKvz4gUk3Nsaj4@fat_crate.local>
在 2025/10/29 20:38, Borislav Petkov 写道:
> On Wed, Oct 29, 2025 at 04:16:44PM +0800, Yu Peng wrote:
>> From: Yu Peng <pengyu@kylinos.com>
>>
>> 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
next prev parent reply other threads:[~2025-10-30 5:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 8:16 Yu Peng
2025-10-29 12:38 ` Borislav Petkov
2025-10-30 5:03 ` Yu Peng [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d33a48f-a43a-4ed6-a903-aff8184eebf3@kylinos.cn \
--to=pengyu@kylinos.cn \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pengyu@kylinos.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®