Re: [PATCH] asm-generic: bitsperlong: Remove the disabled BITS_PER_LONG check

From: Fang Xieyan

Date: Mon Nov 23 2026 - 05:45:29 EST


On Mon, Nov 23, 2026, at 09:08, Arnd Bergmann wrote:
> I think the correct fix would be to stop the x86 vdso from including
> this header. The general rule is that any VDSO code should only
> include headers from include/vdso/, but not include/linux or
> include/asm.

Thanks, that makes sense.

The compat vDSO ABI difference is valid, but it should not require
the VDSO to include this kernel-internal header. I'll drop this
removal.

I re-enabled the check in a test build to see what actually breaks.
On x86-64 the vdso32 build passes, because fake_32bit_build.h
undefines CONFIG_64BIT to fake a 32-bit configuration. The failures
are the realmode build (32-bit code with the real 64-bit config),
and the arm64/parisc compat vDSO builds, which include this header
via <vdso/gettime.h> -> <linux/types.h> without faking the config.

I'll investigate the include chains and look into removing the
dependencies on include/linux and include/asm before revisiting the
check.

Thanks,
Fang Xieyan