summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2026-10-29 14:50:22 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2026-11-19 00:10:15 +0000
commit14e3460321430a3f9ed2260f3c6198bdeaba5792 (patch)
treed9a454c6c49518350b8bc1345c7f1a455aeccb65 /rust/kernel/alloc/allocator
parentff049836f05f5e46f702858a7cb949998e85a310 (diff)
xor: arm/arm64: Move NEON xor_gen() dispatch into the glue code
The NEON intrinsics code in xor-neon.c and arm64/xor-eor3.c includes xor_impl.h for the definition of __DO_XOR_BLOCKS(), which pulls in <linux/types.h> via <linux/init.h> and <linux/minmax.h>. This only works because asm/neon-intrinsics.h overrides the compiler's predefined macros that <stdint.h> uses to define the C99 types, so that they match the kernel's definitions in <linux/types.h>. So instead, follow the approach taken by LoongArch, and instantiate the dispatch routines using DO_XOR_BLOCKS() in the glue code, which already includes the kernel headers, and does not use NEON intrinsics itself. This requires the NEON routines that handle a fixed number of sources to be exposed to the glue code, which means that the arm64 glue code can use __xor_neon_2() directly for the EOR3 flavor as well, and so the __xor_eor3_2() alias can be dropped. This makes the NEON intrinsics code independent of the kernel's own headers, which will allow the macro overrides in asm/neon-intrinsics.h to be removed. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Eric Biggers <ebiggers@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions