[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZxyUV2cMZoKJ317I@gondor.apana.org.au>
Date: Sat, 26 Oct 2024 15:03:51 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Eric Biggers <ebiggers@...nel.org>
Cc: linux-crypto@...r.kernel.org, ardb@...nel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto - move crypto_simd_disabled_for_test to lib
Eric Biggers <ebiggers@...nel.org> wrote:
> From: Eric Biggers <ebiggers@...gle.com>
>
> Move crypto_simd_disabled_for_test to lib/ so that crypto_simd_usable()
> can be used by library code.
>
> This was discussed previously
> (https://lore.kernel.org/linux-crypto/20220716062920.210381-4-ebiggers@kernel.org/)
> but was not done because there was no use case yet. However, this is
> now needed for the arm64 CRC32 library code.
>
> Tested with:
> export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
> echo CONFIG_CRC32=y > .config
> echo CONFIG_MODULES=y >> .config
> echo CONFIG_CRYPTO=m >> .config
> echo CONFIG_DEBUG_KERNEL=y >> .config
> echo CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=n >> .config
> echo CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y >> .config
> make olddefconfig
> make -j$(nproc)
>
> Signed-off-by: Eric Biggers <ebiggers@...gle.com>
> ---
> crypto/algapi.c | 6 ------
> lib/crypto/Makefile | 2 ++
> lib/crypto/simd.c | 11 +++++++++++
> 3 files changed, 13 insertions(+), 6 deletions(-)
> create mode 100644 lib/crypto/simd.c
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists