lib/crc: powerpc: Migrate optimized CRC code into lib/crc/
authorEric Biggers <ebiggers@kernel.org>
Sat, 7 Jun 2025 20:04:49 +0000 (13:04 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:31:57 +0000 (09:31 -0700)
commit190c253d8696b7ba14424c484435ac2d4bcb9ebd
tree82fff57ebfc66ad08930793010f1e44f23911ff4
parentda4fd657730c9510b848ef7a9cc7247bbb6a44c9
lib/crc: powerpc: Migrate optimized CRC code into lib/crc/

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