]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/crc-t10dif: expose CRC-T10DIF function through lib
authorEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:20:51 +0000 (17:20 -0800)
committerEric Biggers <ebiggers@google.com>
Mon, 2 Dec 2024 01:23:13 +0000 (17:23 -0800)
commit7439cfed1c41e5a1f3d095d3a4ffecdb13b279c4
tree1bdc4609cb6afdf2685606f23337ce5f18a562c5
parent2051da858534a73589cdb27af914fe1c03b9ee98
powerpc/crc-t10dif: expose CRC-T10DIF function through lib

Move the powerpc CRC-T10DIF 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/crct10dif-vpmsum_glue.c
to arch/powerpc/lib/crc-t10dif-glue.c, view this commit with
'git show -M10'.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20241202012056.209768-8-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/lib/Makefile
arch/powerpc/lib/crc-t10dif-glue.c [moved from arch/powerpc/crypto/crct10dif-vpmsum_glue.c with 50% similarity]
arch/powerpc/lib/crct10dif-vpmsum_asm.S [moved from arch/powerpc/crypto/crct10dif-vpmsum_asm.S with 99% similarity]