Re: [PATCH v14 12/26] crypto: iaa - Rearchitect iaa_crypto to have clean interfaces with crypto_acomp.
From: Herbert Xu
Date: Fri Feb 06 2026 - 05:52:54 EST
On Sat, Jan 24, 2026 at 07:35:23PM -0800, Kanchana P Sridhar wrote:
>
> +static int iaa_crypto_acomp_init_fixed(struct crypto_acomp *acomp_tfm)
> {
> struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm);
> struct iaa_compression_ctx *ctx = crypto_tfm_ctx(tfm);
>
> - ctx->mode = IAA_MODE_FIXED;
> -
> - compression_ctx_init(ctx);
> + ctx = iaa_ctx[IAA_MODE_FIXED];
Gcc warns about ctx as this line does nothing. What is meant to
initialize?
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt