Commit cac7e8b5 authored by Damien Le Moal's avatar Damien Le Moal

ata: libata-sata: Declare ata_ncq_sdev_attrs static

Since ata_ncq_sdev_attrs is a local struct, declare it static. This
avoids a sparse warning at compile time.
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent 7c5f641a
...@@ -922,7 +922,7 @@ DEVICE_ATTR(ncq_prio_enable, S_IRUGO | S_IWUSR, ...@@ -922,7 +922,7 @@ DEVICE_ATTR(ncq_prio_enable, S_IRUGO | S_IWUSR,
ata_ncq_prio_enable_show, ata_ncq_prio_enable_store); ata_ncq_prio_enable_show, ata_ncq_prio_enable_store);
EXPORT_SYMBOL_GPL(dev_attr_ncq_prio_enable); EXPORT_SYMBOL_GPL(dev_attr_ncq_prio_enable);
struct attribute *ata_ncq_sdev_attrs[] = { static struct attribute *ata_ncq_sdev_attrs[] = {
&dev_attr_unload_heads.attr, &dev_attr_unload_heads.attr,
&dev_attr_ncq_prio_enable.attr, &dev_attr_ncq_prio_enable.attr,
&dev_attr_ncq_prio_supported.attr, &dev_attr_ncq_prio_supported.attr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment