Re: [PATCH 4/8] tools: Remove s390 compat support

From: Heiko Carstens

Date: Thu Nov 13 2025 - 14:45:38 EST


On Thu, Nov 13, 2025 at 04:43:59PM +0100, Thomas Weißschuh wrote:
> On 2025-11-13 16:07:26+0100, Heiko Carstens wrote:
> > Remove s390 compat support from everything within tools, since s390 compat
> > support will be removed from the kernel.
> >
> > While removing s390 compat code replace __s390__ ifdef guards with
> > __s390x__ everywhere. Even though this is not strictly required this
> > makes it easier to spot s390 compat code support leftovers.
> >
> > Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>
> > Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
> > ---
> > .../arch/s390/include/uapi/asm/bitsperlong.h | 4 --
>
> Wouldn't it make sense to emit an explicit error from the UAPI
> headers if a user tries to use them in 31-bit mode?

Except for some CIs there shouldn't be any users. I would expect that such
users, which use the kernel header files for compilation, want to run the
(broken) binary with the kernel which supplied the header files - which does
not work since compat support is missing in the kernel. So it fails when
trying to execute the binary.

Or in other words: I really would like to get rid of all traces of 31/32 bit
support without adding anything new.