Skip to contentSkip to conversation

crypto: qat - make adf_dev_autoreset() static

PATCH In review Giovanni Cabiddu 2 participants 2 messages Jul 17, 2025 – Jul 27, 2025

Subsystems (2)
lore
Share & tools
lore

Giovanni Cabiddu

author maintainer
#0 lore raw

PATCH 1/1 crypto: qat - make adf_dev_autoreset() static

The function adf_dev_autoreset() is only used within adf_aer.c and does not need to be exposed outside the compilation unit. Make it static and remove it from the header adf_common_drv.h.

This does not introduce any functional change.

---
 drivers/crypto/intel/qat/qat_common/adf_aer.c        | 2 +-
 drivers/crypto/intel/qat/qat_common/adf_common_drv.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/crypto/intel/qat/qat_common/adf_aer.c +1 -1
index 4cb8bd83f570..35679b21ff63 100644
@@ -229,7 +229,7 @@ const struct pci_error_handlers adf_err_handler = {
 };
 EXPORT_SYMBOL_GPL(adf_err_handler);
 
-int adf_dev_autoreset(struct adf_accel_dev *accel_dev)
+static int adf_dev_autoreset(struct adf_accel_dev *accel_dev)
 {
 	if (accel_dev->autoreset_on_error)
 		return adf_dev_aer_schedule_reset(accel_dev, ADF_DEV_RESET_ASYNC);
drivers/crypto/intel/qat/qat_common/adf_common_drv.h +0 -1
index 7a022bd4ae07..6cf3a95489e8 100644
@@ -86,7 +86,6 @@ int adf_ae_stop(struct adf_accel_dev *accel_dev);
 extern const struct pci_error_handlers adf_err_handler;
 void adf_reset_sbr(struct adf_accel_dev *accel_dev);
 void adf_reset_flr(struct adf_accel_dev *accel_dev);
-int adf_dev_autoreset(struct adf_accel_dev *accel_dev);
 void adf_dev_restore(struct adf_accel_dev *accel_dev);
 int adf_init_aer(void);
 void adf_exit_aer(void);

base-commit: abe42c61a8b8de9df1856f1d35e8571bc4f19a38

Signature · 1 line
2.50.0
maintainer
#1 lore raw
Quoted 4 lines · Giovanni Cabiddu

The function adf_dev_autoreset() is only used within adf_aer.c and does not need to be exposed outside the compilation unit. Make it static and remove it from the header adf_common_drv.h.

Quoted 8 lines

This does not introduce any functional change.

---
 drivers/crypto/intel/qat/qat_common/adf_aer.c        | 2 +-
 drivers/crypto/intel/qat/qat_common/adf_common_drv.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt