lib/crc: sparc: Migrate optimized CRC code into lib/crc/
authorEric Biggers <ebiggers@kernel.org>
Sat, 7 Jun 2025 20:04:52 +0000 (13:04 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:31:57 +0000 (09:31 -0700)
commit9b2d720e8ac4b68043ef23820ff9210fa12ea50d
tree184d906ceca58c8e2f46e8d615cb58f703da740d
parent2374bf23864932eb32ff209aaf6b82b569d61b2a
lib/crc: sparc: Migrate optimized CRC code into lib/crc/

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