diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2021-11-18 08:31:41 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2021-11-18 08:34:25 +0300 |
commit | cac7e8b5f5fa94e28d581fbb9e76cb1c0c7fd56a (patch) | |
tree | 92a6f0f432abc93bee975e9fe8a4bb556841e0d1 /drivers/ata | |
parent | 7c5f641a5914ce0303b06bcfcd7674ee64aeebe9 (diff) | |
download | linux-cac7e8b5f5fa94e28d581fbb9e76cb1c0c7fd56a.tar.xz |
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: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-sata.c b/drivers/ata/libata-sata.c index 4e88597aa9df..5b78e86e3459 100644 --- a/drivers/ata/libata-sata.c +++ b/drivers/ata/libata-sata.c @@ -922,7 +922,7 @@ DEVICE_ATTR(ncq_prio_enable, S_IRUGO | S_IWUSR, ata_ncq_prio_enable_show, ata_ncq_prio_enable_store); 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_ncq_prio_enable.attr, &dev_attr_ncq_prio_supported.attr, |