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

Move the mips 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/mips/crypto/crc32-mips.c to
arch/mips/lib/crc32-mips.c, view this commit with 'git show -M10'.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20241202010844.144356-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/mips/Kconfig
arch/mips/configs/eyeq5_defconfig
arch/mips/configs/eyeq6_defconfig
arch/mips/configs/generic/32r6.config
arch/mips/configs/generic/64r6.config
arch/mips/crypto/Kconfig
arch/mips/crypto/Makefile
arch/mips/crypto/crc32-mips.c [deleted file]
arch/mips/lib/Makefile
arch/mips/lib/crc32-mips.c [new file with mode: 0644]