From: sashiko-bot@kernel.org
To: "Nathan Chancellor" <nathan@kernel.org>
Cc: linux-s390@vger.kernel.org, "Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH 1/2] kbuild: Move testing of '-mfentry' back to Makefile from Kconfig
Date: Tue, 20 Oct 2026 22:35:21 +0000 [thread overview]
Message-ID: <sashiko-outbox-179544@kernel.org> (raw)
In-Reply-To: <20261020-kconfig-fix-mfentry-check-v1-1-428258bc0fc0@kernel.org>
> Unlike cc-option in Kbuild, cc-option in Kconfig does not test options
> with either bit ('-m32' / '-m64') or endianness ('-mbig-endian' /
> '-mlittle-endian') flags because which flag to use may depend on the
> result of the configuration stage. This difference changes the result of
> testing for '-mfentry' support when using the kernel.org s390 cross
> compiler, which is configured for 32-bit by default.
>
> $ s390-linux-gcc -mfentry -o /dev/null -x c -c /dev/null
> cc1: error: '-mfentry' is supported only for 64-bit CPUs
>
> arch/s390/Makefile sets '-m64' in KBUILD_CPPFLAGS early, so '-mfentry'
> support was properly tested before the move to Kconfig.
>
> $ s390-linux-gcc -m64 -mfentry -o /dev/null -x c -c /dev/null
>
> Ricardo reported another issue with moving this check from Kbuild to
> Kconfig, as '-mfentry' is not supported for x86_32 without '-fno-pic',
> which affects GCC builds that are configured with PIE enabled by
> default. arch/x86/Makefile adds '-fno-pic' to KBUILD_CFLAGS, so this
> works properly in Kbuild.
>
> Move the '-mfentry' check back into Kbuild to avoid adding additional
> complexity to the Kconfig entry.
>
> Fixes: 454e00cf8ee5 ("kbuild: avoid re-running compiler and linker probes")
> Reported-by: Ricardo Ribalda <ribalda@chromium.org>
> Closes: https://lore.kernel.org/20261020-pie-v1-1-9be09f2324b1@chromium.org/
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261020-kconfig-fix-mfentry-check-v1-0-428258bc0fc0@kernel.org?part=1
next prev parent reply other threads:[~2026-10-20 22:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 21:52 [PATCH 0/2] kbuild: Fallout from moving '-mfentry' check into Kconfig stage Nathan Chancellor
2026-10-20 21:52 ` [PATCH 1/2] kbuild: Move testing of '-mfentry' back to Makefile from Kconfig Nathan Chancellor
2026-10-20 22:35 ` sashiko-bot [this message]
2026-10-21 14:44 ` Kees Cook
2026-10-21 18:25 ` Nathan Chancellor
2026-10-20 21:52 ` [PATCH 2/2] scripts/Kconfig.toolchain: Highlight cc-option differences between Kconfig and Kbuild Nathan Chancellor
2026-10-20 23:48 ` [PATCH 0/2] kbuild: Fallout from moving '-mfentry' check into Kconfig stage Ricardo Ribalda
2026-10-21 13:31 ` Lorenzo Stoakes (ARM)
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=sashiko-outbox-179544@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.