]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/crc32: expose CRC32 functions through lib
authorEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:08:34 +0000 (17:08 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:23:01 +0000 (17:23 -0800)
commit008071917dfccffe6637d264e255553af15c99f9
treea382113546c2f6fae8fcc18b0091c5ef1b5765ca
parent372ff60ac4dd72bbd0a0358d5e21f51e62dc5c6f
s390/crc32: expose CRC32 functions through lib

Move the s390 CRC32 assembly code into the lib directory and wire it up
to the library interface.  This allows it to be used without going
through the crypto API.  It remains usable via the crypto API too via
the shash algorithms that use the library interface.  Thus all the
arch-specific "shash" code becomes unnecessary and is removed.

Note: to see the diff from arch/s390/crypto/crc32-vx.c to
arch/s390/lib/crc32-glue.c, view this commit with 'git show -M10'.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20241202010844.144356-10-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/s390/Kconfig
arch/s390/configs/debug_defconfig
arch/s390/configs/defconfig
arch/s390/crypto/Kconfig
arch/s390/crypto/Makefile
arch/s390/crypto/crc32-vx.c [deleted file]
arch/s390/lib/Makefile
arch/s390/lib/crc32-glue.c [new file with mode: 0644]
arch/s390/lib/crc32-vx.h [moved from arch/s390/crypto/crc32-vx.h with 100% similarity]
arch/s390/lib/crc32be-vx.c [moved from arch/s390/crypto/crc32be-vx.c with 100% similarity]
arch/s390/lib/crc32le-vx.c [moved from arch/s390/crypto/crc32le-vx.c with 100% similarity]