lib/crc: s390: Migrate optimized CRC code into lib/crc/
authorEric Biggers <ebiggers@kernel.org>
Sat, 7 Jun 2025 20:04:51 +0000 (13:04 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:31:57 +0000 (09:31 -0700)
commit2374bf23864932eb32ff209aaf6b82b569d61b2a
tree01e29921d70edb5f05ffd6376f8204c040dccbfd
parentb5943815e63b859b5b66710e79c9561112c4d01b
lib/crc: s390: Migrate optimized CRC code into lib/crc/

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