Re: [PATCH] s390: Implement ARCH_HAS_CC_CAN_LINK

From: Heiko Carstens

Date: Mon Dec 22 2025 - 06:28:59 EST


On Mon, Dec 22, 2025 at 09:28:17AM +0100, Thomas Weißschuh wrote:
> The generic CC_CAN_LINK detection relies on -m32/-m64 compiler flags.
> s390 toolchains use -m31 instead but that is not supported in the
> kernel.

Some s390 toolchains default to -m31, depending on how they are
built. Actually I'm only aware of a single one. But given that this
one is used all over the place for cross builds it is important
enough.

> Make the logic easier to understand and allow the simplification of the
> generic CC_CAN_LINK by using a tailored implementation.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> ---
> arch/s390/Kconfig | 9 +++++++++
> 1 file changed, 9 insertions(+)

Applied, and scheduled for the next merge window. Thanks!