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

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

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20241202010844.144356-9-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/powerpc/Kconfig
arch/powerpc/configs/powernv_defconfig
arch/powerpc/configs/ppc64_defconfig
arch/powerpc/crypto/Kconfig
arch/powerpc/crypto/Makefile
arch/powerpc/crypto/crc32c-vpmsum_glue.c [deleted file]
arch/powerpc/crypto/crct10dif-vpmsum_asm.S
arch/powerpc/lib/Makefile
arch/powerpc/lib/crc32-glue.c [new file with mode: 0644]
arch/powerpc/lib/crc32-vpmsum_core.S [moved from arch/powerpc/crypto/crc32-vpmsum_core.S with 100% similarity]
arch/powerpc/lib/crc32c-vpmsum_asm.S [moved from arch/powerpc/crypto/crc32c-vpmsum_asm.S with 100% similarity]