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

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

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: WangYuli <wangyuli@uniontech.com>
Link: https://lore.kernel.org/r/20241202010844.144356-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/loongarch/Kconfig
arch/loongarch/configs/loongson3_defconfig
arch/loongarch/crypto/Kconfig
arch/loongarch/crypto/Makefile
arch/loongarch/crypto/crc32-loongarch.c [deleted file]
arch/loongarch/lib/Makefile
arch/loongarch/lib/crc32-loongarch.c [new file with mode: 0644]