From: Herbert Xu <herbert@gondor.apana.org.au>
To: Ahsan Atta <ahsan.atta@intel.com>
Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com,
Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Subject: Re: [PATCH] crypto: qat - remove unused get_num_accels()
Date: Thu, 8 Oct 2026 19:30:45 +1100 [thread overview]
Message-ID: <asdUtSboy8oa_FIm@gondor.apana.org.au> (raw)
In-Reply-To: <20261001122841.2271248-1-ahsan.atta@intel.com>
On Thu, Oct 01, 2026 at 01:28:41PM +0100, Ahsan Atta wrote:
> The get_num_accels() hook in struct adf_hw_device_data has had no
> callers since commit d237230728c5 ("crypto: qat - remove unused
> character device and IOCTLs"), which deleted its last user in
> adf_ctl_drv.c. Every device driver still populates it and two
> implementations are still exported, all of it dead code.
>
> Remove the hook, its generation-level implementations
> adf_gen2_get_num_accels() and adf_gen4_get_num_accels(), the
> per-device static implementations and all the assignments.
>
> The hw_data->num_accel field is left untouched as it is still used.
>
> Signed-off-by: Ahsan Atta <ahsan.atta@intel.com>
> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
> ---
> drivers/crypto/intel/qat/qat_420xx/adf_420xx_hw_data.c | 1 -
> drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 1 -
> drivers/crypto/intel/qat/qat_6xxx/adf_6xxx_hw_data.c | 6 ------
> drivers/crypto/intel/qat/qat_c3xxx/adf_c3xxx_hw_data.c | 1 -
> .../crypto/intel/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c | 6 ------
> drivers/crypto/intel/qat/qat_c62x/adf_c62x_hw_data.c | 1 -
> drivers/crypto/intel/qat/qat_c62xvf/adf_c62xvf_hw_data.c | 6 ------
> drivers/crypto/intel/qat/qat_common/adf_accel_devices.h | 1 -
> drivers/crypto/intel/qat/qat_common/adf_gen2_hw_data.c | 9 ---------
> drivers/crypto/intel/qat/qat_common/adf_gen2_hw_data.h | 1 -
> drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c | 6 ------
> drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.h | 1 -
> .../crypto/intel/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c | 1 -
> .../intel/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c | 6 ------
> 14 files changed, 47 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2026-10-08 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 12:28 [PATCH] crypto: qat - remove unused get_num_accels() Ahsan Atta
2026-10-08 8:30 ` Herbert Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=asdUtSboy8oa_FIm@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=ahsan.atta@intel.com \
--cc=giovanni.cabiddu@intel.com \
--cc=linux-crypto@vger.kernel.org \
--cc=qat-linux@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox