]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crc: arm64: Assume a little-endian kernel
authorEric Biggers <ebiggers@kernel.org>
Wed, 1 Apr 2026 00:44:31 +0000 (17:44 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 2 Apr 2026 23:13:18 +0000 (16:13 -0700)
commit5276ea17a23c829d4e4417569abff71a1c8342d9
tree1bb4027ab3b806d3f6d83e6b0e1e6d2a128c3c7b
parent63432fd625372a0e79fb00a4009af204f4edc013
lib/crc: arm64: Assume a little-endian kernel

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.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260401004431.151432-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crc/arm64/crc-t10dif-core.S
lib/crc/arm64/crc32-core.S