[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZR426DOX/NPqp5WM@gondor.apana.org.au>
Date: Thu, 5 Oct 2023 12:09:12 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Corentin Labbe <clabbe@...libre.com>
Cc: andrew@...id.au, davem@...emloft.net, joel@....id.au,
john.allen@....com, neal_liu@...eedtech.com,
thomas.lendacky@....com, linux-arm-kernel@...ts.infradead.org,
linux-aspeed@...ts.ozlabs.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: Move akcipher_request_cast helper to crypto
header
On Sun, Oct 01, 2023 at 08:13:57PM +0000, Corentin Labbe wrote:
>
> diff --git a/include/crypto/akcipher.h b/include/crypto/akcipher.h
> index 670508f1dca1..4b6e610db18d 100644
> --- a/include/crypto/akcipher.h
> +++ b/include/crypto/akcipher.h
> @@ -498,4 +498,11 @@ static inline int crypto_akcipher_set_priv_key(struct crypto_akcipher *tfm,
>
> return alg->set_priv_key(tfm, key, keylen);
> }
> +
> +static inline struct akcipher_request *
> + akcipher_request_cast(struct crypto_async_request *req)
> +{
> + return container_of(req, struct akcipher_request, base);
> +}
Please move this to include/crypto/internal/akcipher.h.
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