summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-09-12 11:37:41 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-09-15 21:28:40 -0400
commit7867c549d5741437b771a91e2a1d5e77e48bc3d0 (patch)
treeb59c98039188745ebf3c5c3fb9c2ed286d682e15 /drivers
parent571e1568862822cf27ff1f7b7cacf98a7e435307 (diff)
scsi: isci: Make isci_host_attrs static
This eliminates the following sparse warning: drivers/scsi/isci/init.c:145:25: warning: symbol 'isci_host_attrs' was not declared. Should it be static? Link: https://lore.kernel.org/r/20200912033741.142415-1-yanaijie@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/isci/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c
index 085e285f427d..93bc9019667f 100644
--- a/drivers/scsi/isci/init.c
+++ b/drivers/scsi/isci/init.c
@@ -142,7 +142,7 @@ static ssize_t isci_show_id(struct device *dev, struct device_attribute *attr, c
static DEVICE_ATTR(isci_id, S_IRUGO, isci_show_id, NULL);
-struct device_attribute *isci_host_attrs[] = {
+static struct device_attribute *isci_host_attrs[] = {
&dev_attr_isci_id,
NULL
};