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

Catalin Marinas catalin.marinas at arm.com
Thu Nov 19 02:51:16 PST 2026


On Thu, 29 Oct 2026 14:50:20 +0100, Ard Biesheuvel wrote:
> 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).
> 
> [...]

Applied the first three patches to arm64 (for-next/fixes), thanks! I
also added a cc stable, though it won't be a straightforward
cherry-pick. I left the last patch out, IIUC it's just clean-up rather
than fixing a problem on arm32 and can go separately via Russell's tree
during the next merge window (let me know if you think otherwise).

(cc'ed the md maintainers for their information as the patches touch
their code)

[1/4] lib/crc: Don't include <linux/types.h> in NEON intrinsics code
      https://git.kernel.org/arm64/c/ff049836f05f
[2/4] xor: arm/arm64: Move NEON xor_gen() dispatch into the glue code
      https://git.kernel.org/arm64/c/14e346032143
[3/4] arm64: Drop stdint.h type overrides from asm/neon-intrinsics.h
      https://git.kernel.org/arm64/c/a041bdbe1f3a



More information about the linux-arm-kernel mailing list