Skip to content

Commit cac7e8b

Browse files
author
Damien Le Moal
committed
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 <[email protected]>
1 parent 7c5f641 commit cac7e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/libata-sata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ DEVICE_ATTR(ncq_prio_enable, S_IRUGO | S_IWUSR,
922922
ata_ncq_prio_enable_show, ata_ncq_prio_enable_store);
923923
EXPORT_SYMBOL_GPL(dev_attr_ncq_prio_enable);
924924

925-
struct attribute *ata_ncq_sdev_attrs[] = {
925+
static struct attribute *ata_ncq_sdev_attrs[] = {
926926
&dev_attr_unload_heads.attr,
927927
&dev_attr_ncq_prio_enable.attr,
928928
&dev_attr_ncq_prio_supported.attr,

0 commit comments

Comments
 (0)