linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: aic7xxx: move declaration of 'aic79xx_slowcrc' to aic79xx_osm.h
@ 2020-09-21 14:27 Jason Yan
  0 siblings, 0 replies; only message in thread
From: Jason Yan @ 2020-09-21 14:27 UTC (permalink / raw)
  To: hare, jejb, martin.petersen, linux-scsi; +Cc: Jason Yan, Hulk Robot

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(-)

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
-- 
2.25.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-21 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 14:27 [PATCH] scsi: aic7xxx: move declaration of 'aic79xx_slowcrc' to aic79xx_osm.h Jason Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).