Re: [PATCH] selftests/nolibc: fix sparc32 tests with -mcpu=v9

From: Geert Uytterhoeven

Date: Tue Jan 06 2026 - 08:36:37 EST


Hi Thomas,

On Tue, 6 Jan 2026 at 12:47, Thomas Weißschuh <linux@xxxxxxxxxxxxxx> wrote:
> On 2026-01-06 12:40:12+0100, Geert Uytterhoeven wrote:
> > On Sun, 4 Jan 2026 at 23:14, Thomas Weißschuh <linux@xxxxxxxxxxxxxx> wrote:
>
> (...)
>
> > > --- a/tools/testing/selftests/nolibc/Makefile.nolibc
> > > +++ b/tools/testing/selftests/nolibc/Makefile.nolibc
> > > @@ -117,7 +117,7 @@ DEFCONFIG_riscv32 = rv32_defconfig
> > > DEFCONFIG_riscv64 = defconfig
> > > DEFCONFIG_s390x = defconfig
> > > DEFCONFIG_loongarch = defconfig
> > > -DEFCONFIG_sparc32 = sparc32_defconfig
> > > +DEFCONFIG_sparc32 = sparc64_defconfig
> >
> > How can we test sparc32 using a 64-bit kernel?
>
> CONFIG_COMPAT=y

FWIW, testing 32-bit userland on a 64-bit kernel is something completely
different...

> Please note that this changed in (the now committed) v2 anyways:
> https://lore.kernel.org/lkml/20260106-nolibc-sparc32-fix-v2-1-7c5cd6b175c2@xxxxxxxxxxxxxx/

Sorry, I hadn't noticed the newer version, as the latter does not
include some keywords to trigger my interest ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds