Skip to contentSkip to conversation

libata: libahci: declare ahci_shost_attr_group as static

PATCH In review Damien Le Moal 2 participants 2 messages Nov 11, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata: libahci: declare ahci_shost_attr_group as static

ahci_shost_attr_group is referenced only in drivers/ata/libahci.c. Declare it as static.

Fixes c3f69c7f629f ("scsi: ata: Switch to attribute groups")
Cc Bart Van Assche <[email protected]>
---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/libahci.c +1 -1
index 28430c093a7f..8a6835bfd18a 100644
@@ -131,7 +131,7 @@ const struct attribute_group *ahci_shost_groups[] = {
 };
 EXPORT_SYMBOL_GPL(ahci_shost_groups);
 
-struct attribute *ahci_sdev_attrs[] = {
+static struct attribute *ahci_sdev_attrs[] = {
 	&dev_attr_sw_activity.attr,
 	&dev_attr_unload_heads.attr,
 	&dev_attr_ncq_prio_supported.attr,
Signature · 1 line
2.31.1