Re: [PATCH] lib/crc: arm64: Assume a little-endian kernel

Ard Biesheuvel
2026-04-01T07:31:44Z

On Wed, 1 Apr 2026, at 02:44, Eric Biggers wrote:
> Since support for big-endian arm64 kernels was removed, the CPU_LE()
> macro now unconditionally emits the code it is passed, and the CPU_BE()
> macro now unconditionally discards the code it is passed.
>
> Simplify the assembly code in lib/crc/arm64/ accordingly.
>
> Signed-off-by: Eric Biggers <ebiggers@kernel.org>
> ---
>
> This patch is targeting crc-next
>
> lib/crc/arm64/crc-t10dif-core.S | 56 ++++++++++++++++-----------------
> lib/crc/arm64/crc32-core.S | 9 ++----
> 2 files changed, 30 insertions(+), 35 deletions(-)
>

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>