scsi: hisi_sas: make local symbol host_attrs static
authorWei Yongjun <[email protected]>
Thu, 11 Jan 2018 11:13:58 +0000 (11:13 +0000)
committerMartin K. Petersen <[email protected]>
Wed, 17 Jan 2018 06:00:38 +0000 (01:00 -0500)
Fixes the following sparse warning:

drivers/scsi/hisi_sas/hisi_sas_main.c:1691:25: warning:
 symbol 'host_attrs' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/hisi_sas/hisi_sas_main.c

index 360ecefba10ac9e2adef715c011286e760105030..e3e7285f5eb18325cca26bda0c27b8146a42a6c1 100644 (file)
@@ -1688,7 +1688,7 @@ EXPORT_SYMBOL_GPL(hisi_sas_kill_tasklets);
 struct scsi_transport_template *hisi_sas_stt;
 EXPORT_SYMBOL_GPL(hisi_sas_stt);
 
-struct device_attribute *host_attrs[] = {
+static struct device_attribute *host_attrs[] = {
        &dev_attr_phy_event_threshold,
        NULL,
 };