lib/crc: arm: Migrate optimized CRC code into lib/crc/
authorEric Biggers <ebiggers@kernel.org>
Sat, 7 Jun 2025 20:04:45 +0000 (13:04 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:31:57 +0000 (09:31 -0700)
commit530b304f00f278b3aa31bdfccf09b3ffb457a607
treeaf162952c0ee4c6a9fa05ff4b664f42cd792db33
parent0bcfca56406dc6342e30fafe41a2f34cdde029b4
lib/crc: arm: Migrate optimized CRC code into lib/crc/

Move the arm-optimized CRC code from arch/arm/lib/crc* into its new
location in lib/crc/arm/, 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-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
12 files changed:
arch/arm/Kconfig
arch/arm/lib/Makefile
arch/arm/lib/crc-t10dif-core.S [deleted file]
arch/arm/lib/crc-t10dif.c [deleted file]
arch/arm/lib/crc32-core.S [deleted file]
arch/arm/lib/crc32.c [deleted file]
lib/crc/Kconfig
lib/crc/Makefile
lib/crc/arm/crc-t10dif-core.S [new file with mode: 0644]
lib/crc/arm/crc-t10dif.h [new file with mode: 0644]
lib/crc/arm/crc32-core.S [new file with mode: 0644]
lib/crc/arm/crc32.h [new file with mode: 0644]