diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-01-11 12:13:58 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-01-17 07:00:38 +0100 |
commit | 1e15feacb9d3743ca0b314a6daf8cc59c90b1046 (patch) | |
tree | b04a31437aee77542fbe937e240c916e588e5eec /drivers/scsi/hisi_sas | |
parent | scsi: scsi_debug: delay stress fix (diff) | |
download | linux-1e15feacb9d3743ca0b314a6daf8cc59c90b1046.tar.xz linux-1e15feacb9d3743ca0b314a6daf8cc59c90b1046.zip |
scsi: hisi_sas: make local symbol host_attrs static
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 <weiyongjun1@huawei.com>
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 360ecefba10a..e3e7285f5eb1 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -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, }; |