[PATCH v2 0/9] lib/crypto: move arch/$(ARCH)/lib/crypto/ to lib/crypto/$(ARCH)/
Ard Biesheuvel
ardb at kernel.org
Fri Jun 20 14:39:24 PDT 2025
On Thu, 19 Jun 2025 at 21:22, Eric Biggers <ebiggers at kernel.org> wrote:
>
> This series applies on top of
> https://lore.kernel.org/r/20250616014019.415791-1-ebiggers@kernel.org/
> and is also available in git at:
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git arch-to-lib-crypto-v2
>
> This series moves the contents of arch/$(ARCH)/lib/crypto/ into
> lib/crypto/$(ARCH)/.
>
> The new code organization makes a lot more sense for how this code
> actually works and is developed. In particular, it makes it possible to
> build each algorithm as a single module, with better inlining and dead
> code elimination. For a more detailed explanation, see the patchset
> which did this for the CRC library code:
> https://lore.kernel.org/r/20250607200454.73587-1-ebiggers@kernel.org/.
> Also see the patchset which did this for SHA-512:
> https://lore.kernel.org/linux-crypto/20250616014019.415791-1-ebiggers@kernel.org/
>
> This is just a preparatory series, which does the move to get the files
> into their new location but keeps them building the same way as before.
> Later patch series will make the actual improvements to the way the
> arch-optimized code is integrated for each algorithm.
>
> Changed in v2:
> - Instead of keeping arch/*/lib/crypto/.gitignore, instead add entry
> for now-removed crypto directory to arch/*/lib/.gitignore.
> - Adjusted commit messages and titles.
> - Added Reviewed-by.
>
> Eric Biggers (9):
> lib/crypto: arm: move arch/arm/lib/crypto/ into lib/crypto/
> lib/crypto: arm64: move arch/arm64/lib/crypto/ into lib/crypto/
> lib/crypto: mips: move arch/mips/lib/crypto/ into lib/crypto/
> lib/crypto: powerpc: move arch/powerpc/lib/crypto/ into lib/crypto/
> lib/crypto: riscv: move arch/riscv/lib/crypto/ into lib/crypto/
> lib/crypto: s390: move arch/s390/lib/crypto/ into lib/crypto/
> lib/crypto: sparc: move arch/sparc/lib/crypto/ into lib/crypto/
> lib/crypto: x86: move arch/x86/lib/crypto/ into lib/crypto/
> MAINTAINERS: drop arch/*/lib/crypto/ pattern
>
For the series,
Acked-by: Ard Biesheuvel <ardb at kernel.org>
More information about the linux-arm-kernel
mailing list