[PATCH 0/4] Get rid of all NEON intrinsics stdint.h type hacks

Ard Biesheuvel ardb at kernel.org
Fri Nov 13 00:23:03 PST 2026


On Thu, 12 Nov 2026, at 23:27, Nathan Chancellor wrote:
> Hi Ard,
>
> On Thu, Oct 29, 2026 at 02:50:20PM +0100, Ard Biesheuvel wrote:
>> From: Ard Biesheuvel <ardb at kernel.org>
>> 
>> Recent Clang has become more finicky when it comes to overriding the
>> type macros that the freestanding stdint.h consumes when defining the
>> uintXX_t types, and so it is time to finally get rid of this entirely.
>> 
>> So instead of making stdint.h (which comes from the compiler when
>> -ffreestanding is set on the command line) agree with the kernel's
>> linux/types.h header, avoid the latter entirely in the compilation units
>> that actually use the NEON intrinsics (which are always leaf functions
>> that are not tightly coupled to kernel APIs).
>> 
>> Note that the disagreements are about long vs. long long on arm64, and
>> long vs. int on 32-bit ARM, so never about types that actually have
>> conflicting representations.
>> 
>> Cc: Christoph Hellwig <hch at lst.de>
>> Cc: Eric Biggers <ebiggers at kernel.org>
>> Cc: Nathan Chancellor <nathan at kernel.org>
>> 
>> Ard Biesheuvel (4):
>>   lib/crc: Don't include <linux/types.h> in NEON intrinsics code
>>   xor: arm/arm64: Move NEON xor_gen() dispatch into the glue code
>>   arm64: Drop stdint.h type overrides from asm/neon-intrinsics.h
>>   ARM: Drop stdint.h type overrides from asm/neon-intrinsics.h
>
> Who do you think should take this series? It would be nice if it could
> start making its way to mainline sooner rather than later since tip of
> tree clang builds have been broken for over a month at this point.
>

Are the first two patches sufficient for that? Perhaps Eric can take them
through the CRC or libcrypto trees, and I can send the remaining ones
through the respective arch trees the following cycle.




More information about the linux-arm-kernel mailing list