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

Move the arm 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/arm/crypto/crc32-ce-glue.c to
arch/arm/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-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
arch/arm/Kconfig
arch/arm/configs/milbeaut_m10v_defconfig
arch/arm/configs/multi_v7_defconfig
arch/arm/crypto/Kconfig
arch/arm/crypto/Makefile
arch/arm/crypto/crc32-ce-glue.c [deleted file]
arch/arm/lib/Makefile
arch/arm/lib/crc32-core.S [moved from arch/arm/crypto/crc32-ce-core.S with 98% similarity]
arch/arm/lib/crc32-glue.c [new file with mode: 0644]