summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2021-11-18 06:31:41 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2021-11-18 06:34:25 +0100
commitcac7e8b5f5fa94e28d581fbb9e76cb1c0c7fd56a (patch)
tree92a6f0f432abc93bee975e9fe8a4bb556841e0d1 /drivers
parentata: libahci: Adjust behavior when StorageD3Enable _DSD is set (diff)
downloadlinux-cac7e8b5f5fa94e28d581fbb9e76cb1c0c7fd56a.tar.xz
linux-cac7e8b5f5fa94e28d581fbb9e76cb1c0c7fd56a.zip
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')
-rw-r--r--drivers/ata/libata-sata.c2
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,