crypto: qat - make adf_dev_autoreset() static
Subsystems (2)
Giovanni Cabiddu
maintainerPATCH 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.
Signed-off-by Giovanni Cabiddu <[email protected]>
Reviewed-by Ahsan Atta <[email protected]>
--- 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
@@ -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
@@ -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
Herbert Xu
maintainerQuoted 4 lines · Giovanni Cabiddu
The function
adf_dev_autoreset()is only used withinadf_aer.cand does not need to be exposed outside the compilation unit. Make it static and remove it from the headeradf_common_drv.h.
Quoted 8 lines
This does not introduce any functional change.
Signed-off-by Giovanni Cabiddu <[email protected]>Reviewed-by Ahsan Atta <[email protected]>--- 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