lib/crc: arm64: Migrate optimized CRC code into lib/crc/
authorEric Biggers <ebiggers@kernel.org>
Sat, 7 Jun 2025 20:04:46 +0000 (13:04 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:31:57 +0000 (09:31 -0700)
commit2b7531b2a2037959ac81ff2c95e4557b30cfd253
tree1f8cdd1ee8058b8a4a95eb778f2b1390c80d0611
parent530b304f00f278b3aa31bdfccf09b3ffb457a607
lib/crc: arm64: Migrate optimized CRC code into lib/crc/

Move the arm64-optimized CRC code from arch/arm64/lib/crc* into its new
location in lib/crc/arm64/, and wire it up in the new way.  This new way
of organizing the CRC code eliminates the need to artificially split the
code for each CRC variant into separate arch and generic modules,
enabling better inlining and dead code elimination.  For more details,
see "lib/crc: Prepare for arch-optimized code in subdirs of lib/crc/".

Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: "Jason A. Donenfeld" <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20250607200454.73587-5-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
12 files changed:
arch/arm64/Kconfig
arch/arm64/lib/Makefile
arch/arm64/lib/crc-t10dif-core.S [deleted file]
arch/arm64/lib/crc-t10dif.c [deleted file]
arch/arm64/lib/crc32-core.S [deleted file]
arch/arm64/lib/crc32.c [deleted file]
lib/crc/Kconfig
lib/crc/Makefile
lib/crc/arm64/crc-t10dif-core.S [new file with mode: 0644]
lib/crc/arm64/crc-t10dif.h [new file with mode: 0644]
lib/crc/arm64/crc32-core.S [new file with mode: 0644]
lib/crc/arm64/crc32.h [new file with mode: 0644]