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

Move the sparc CRC32C 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/sparc/crypto/crc32c_glue.c to
arch/sparc/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-11-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/sparc/Kconfig
arch/sparc/crypto/Kconfig
arch/sparc/crypto/Makefile
arch/sparc/crypto/crc32c_glue.c [deleted file]
arch/sparc/lib/Makefile
arch/sparc/lib/crc32_glue.c [new file with mode: 0644]
arch/sparc/lib/crc32c_asm.S [moved from arch/sparc/crypto/crc32c_asm.S with 92% similarity]