[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZN8yujTWN42vd2cF@gondor.apana.org.au>
Date: Fri, 18 Aug 2023 16:58:34 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Tom Zanussi <tom.zanussi@...ux.intel.com>
Cc: davem@...emloft.net, fenghua.yu@...el.com, vkoul@...nel.org,
dave.jiang@...el.com, tony.luck@...el.com,
wajdi.k.feghali@...el.com, james.guilford@...el.com,
kanchana.p.sridhar@...el.com, vinodh.gopal@...el.com,
giovanni.cabiddu@...el.com, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, dmaengine@...r.kernel.org
Subject: Re: [PATCH v9 00/14] crypto: Add Intel Analytics Accelerator (IAA)
crypto compression driver
On Mon, Aug 07, 2023 at 03:37:12PM -0500, Tom Zanussi wrote:
> Hi, this is v9 of the IAA crypto driver, incorporating feedback from
> v8.
>
> v9 changes:
>
> - Renamed drv_enable/disable_wq() to idxd_drv_enable/disable_wq()
> and exported it, changing all existing callers as well as the
> iaa_crypto driver.
>
> - While testing, ran into a use-after-free bug in the irq support
> flagged by KASAN so fixed that up in iaa_compress() (added missing
> disable_async check).
>
> - Also, while fixing the use-after-free bug, rearranged the out:
> part of iaa_desc_complete() to make it cleaner.
>
> - Also for the verify cases, reversed the dma mapping by adding and
> calling a new iaa_remap_for_verify() function, since verify
> basically does a decompress after reversing the src and dst
> buffers.
>
> - Added new Acked-by and Reviewed-by tags.
This adds a bunch of warnings for me:
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2090:5: warning: no previous prototype for ‘wq_stats_show’ [-Wmissing-prototypes]
2090 | int wq_stats_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2106:5: warning: no previous prototype for ‘iaa_crypto_stats_reset’ [-Wmissing-prototypes]
2106 | int iaa_crypto_stats_reset(void *data, u64 value)
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:38: warning: incorrect type in argument 1 (different base types)
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:38: expected unsigned long [usertype] size
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:38: got restricted gfp_t
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:58: warning: incorrect type in argument 2 (different base types)
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:58: expected restricted gfp_t [usertype] flags
../drivers/crypto/intel/iaa/iaa_crypto_main.c:827:58: got unsigned long
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2090:5: warning: symbol 'wq_stats_show' was not declared. Should it be static?
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2106:5: warning: symbol 'iaa_crypto_stats_reset' was not declared. Should it be static?
../drivers/crypto/intel/iaa/iaa_crypto_main.c:2028:13: warning: context imbalance in 'iaa_crypto_remove' - different lock contexts for basic block
../drivers/crypto/intel/iaa/iaa_crypto_comp_fixed.c:10:11: warning: symbol 'fixed_ll_sym' was not declared. Should it be static?
../drivers/crypto/intel/iaa/iaa_crypto_comp_fixed.c:49:11: warning: symbol 'fixed_d_sym' was not declared. Should it be static?
Please fix before resubmitting.
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