Re: [PATCH] asm-generic: bitsperlong: Remove the disabled BITS_PER_LONG check
From: Arnd Bergmann
Date: Mon Nov 23 2026 - 03:12:49 EST
On Sat, Nov 21, 2026, at 15:04, Fang Xieyan wrote:
> A FIXME in this header asks to fix x86-64 and reenable the check
> between BITS_PER_LONG and __BITS_PER_LONG. However, this check
> cannot be enabled because the two values can legitimately differ
> when building the compat vDSO.
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.
Arnd