From: Wei Yongjun Date: Thu, 11 Jan 2018 11:13:58 +0000 (+0000) Subject: scsi: hisi_sas: make local symbol host_attrs static X-Git-Tag: v4.16-rc1~140^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e15feacb9d3743ca0b314a6daf8cc59c90b1046;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: John Garry Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 360ecefba10ac..e3e7285f5eb18 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, };