Message ID | 20200921142716.874975-1-yanaijie@huawei.com |
---|---|
State | New |
Headers | show |
Series | scsi: aic7xxx: move declaration of 'aic79xx_slowcrc' to aic79xx_osm.h | expand |
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.h b/drivers/scsi/aic7xxx/aic79xx_osm.h index 8a8b7ae7aed3..fd3b5e07b9c9 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.h +++ b/drivers/scsi/aic7xxx/aic79xx_osm.h @@ -679,5 +679,6 @@ void ahd_print_path(struct ahd_softc *, struct scb *); #endif #define bootverbose aic79xx_verbose extern uint32_t aic79xx_verbose; +extern uint32_t aic79xx_slowcrc; #endif /* _AIC79XX_LINUX_H_ */ diff --git a/drivers/scsi/aic7xxx/aic79xx_pci.c b/drivers/scsi/aic7xxx/aic79xx_pci.c index 8397ae93f7dd..a29a9cf84f05 100644 --- a/drivers/scsi/aic7xxx/aic79xx_pci.c +++ b/drivers/scsi/aic7xxx/aic79xx_pci.c @@ -965,7 +965,6 @@ ahd_aic790X_setup(struct ahd_softc *ahd) AHD_SET_SLEWRATE(ahd, AHD_SLEWRATE_DEF_REVA); } else { /* This is revision B and newer. */ - extern uint32_t aic79xx_slowcrc; u_int devconfig1; ahd->features |= AHD_RTI|AHD_NEW_IOCELL_OPTS
This addresses the following sparse warning: drivers/scsi/aic7xxx/aic79xx_osm.c:312:10: warning: symbol 'aic79xx_slowcrc' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> --- drivers/scsi/aic7xxx/aic79xx_osm.h | 1 + drivers/scsi/aic7xxx/aic79xx_pci.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)