Skip to content

Commit 301eee1

Browse files
gcabidduherbertx
authored andcommitted
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]> Signed-off-by: Herbert Xu <[email protected]>
1 parent a714755 commit 301eee1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/crypto/intel/qat/qat_common/adf_aer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const struct pci_error_handlers adf_err_handler = {
229229
};
230230
EXPORT_SYMBOL_GPL(adf_err_handler);
231231

232-
int adf_dev_autoreset(struct adf_accel_dev *accel_dev)
232+
static int adf_dev_autoreset(struct adf_accel_dev *accel_dev)
233233
{
234234
if (accel_dev->autoreset_on_error)
235235
return adf_dev_aer_schedule_reset(accel_dev, ADF_DEV_RESET_ASYNC);

drivers/crypto/intel/qat/qat_common/adf_common_drv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ int adf_ae_stop(struct adf_accel_dev *accel_dev);
8686
extern const struct pci_error_handlers adf_err_handler;
8787
void adf_reset_sbr(struct adf_accel_dev *accel_dev);
8888
void adf_reset_flr(struct adf_accel_dev *accel_dev);
89-
int adf_dev_autoreset(struct adf_accel_dev *accel_dev);
9089
void adf_dev_restore(struct adf_accel_dev *accel_dev);
9190
int adf_init_aer(void);
9291
void adf_exit_aer(void);

0 commit comments

Comments
 (0)