scsi: ata: make ahci_sdev_attrs static
PATCH 1/1 scsi: ata: make ahci_sdev_attrs static
From: chongjiapeng <[email protected]>
This symbol is not used outside of libahci.c, so marks it static.
Fix the following sparse warning:
drivers/ata/libahci.c:134:18: warning: symbol 'ahci_sdev_attrs' was not declared. Should it be static?
--- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/libahci.c +1 -1
@@ -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.19.1.6.gb485710b
+Bart
Quoted 1 line · Jiapeng Chong
From: chongjiapeng <[email protected]>
The patch title should be:
ata: libahci: make ahci_sdev_attrs static
Quoted 21 lines
This symbol is not used outside of
libahci.c, so marks it static.Fix the following sparse warning:
drivers/ata/libahci.c:134:18: warning: symbol 'ahci_sdev_attrs' was not declared. Should it be static?Reported-by Abaci Robot <[email protected]>Fixes c3f69c7f629f ("scsi: ata: Switch to attribute groups")Signed-off-by chongjiapeng <[email protected]>--- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/libahci.c +0
-0
drivers/ata/libahci.c const struct attribute_group *ahci_shost_groups[] = { · line 137
Quoted 8 lines
drivers/ata/libahci.c +1
-1@@ -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,
Looks OK to me.
Bart ?
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 32 lines · Damien Le Moal
+Bart
Quoted 1 line · Jiapeng Chong
From: chongjiapeng <[email protected]>
The patch title should be:
ata: libahci: make
ahci_sdev_attrsstaticQuoted 23 lines
This symbol is not used outside of
libahci.c, so marks it static.Fix the following sparse warning:
drivers/ata/libahci.c:134:18: warning: symbol 'ahci_sdev_attrs' was not declared. Should it be static?Reported-by Abaci Robot <[email protected]>Fixes c3f69c7f629f ("scsi: ata: Switch to attribute groups")Signed-off-by chongjiapeng <[email protected]>--- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/libahci.c +0
-0@@ -131,7 +131,7 @@ const struct attribute_group *ahci_shost_groups[] = { };EXPORT_SYMBOL_GPL (ahci_shost_groups);
Quoted 8 lines
drivers/ata/libahci.c const struct attribute_group *ahci_shost_groups[] = { · line 137
Quoted 6 lines
drivers/ata/libahci.c +1
-1-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,Looks OK to me.
The above patch looks fine to me too.
Thanks,
Bart.
Quoted 42 lines · Bart Van Assche
Quoted 32 lines · Damien Le Moal
+Bart
Quoted 1 line · Jiapeng Chong
From: chongjiapeng <[email protected]>
The patch title should be:
ata: libahci: make
ahci_sdev_attrsstaticQuoted 23 lines
This symbol is not used outside of
libahci.c, so marks it static.Fix the following sparse warning:
drivers/ata/libahci.c:134:18: warning: symbol 'ahci_sdev_attrs' was not declared. Should it be static?Reported-by Abaci Robot <[email protected]>Fixes c3f69c7f629f ("scsi: ata: Switch to attribute groups")Signed-off-by chongjiapeng <[email protected]>--- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/libahci.c +0
-0@@ -131,7 +131,7 @@ const struct attribute_group *ahci_shost_groups[] = { };EXPORT_SYMBOL_GPL (ahci_shost_groups);Quoted 8 lines
drivers/ata/libahci.c const struct attribute_group *ahci_shost_groups[] = { · line 137
Quoted 6 lines
drivers/ata/libahci.c +1
-1-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,Looks OK to me.
Quoted 1 line
The above patch looks fine to me too.
Can I add your reviewed-by tag ?
Quoted 5 lines
Thanks,
Bart.
Signature · 2 lines
Damien Le Moal Western Digital Research
Bart Van Assche
Reviewed-byQuoted 4 lines · Damien Le Moal
Quoted 1 line · Bart Van Assche
The above patch looks fine to me too.
Can I add your reviewed-by tag ?
Sure. Feel free to add the following:
Quoted 22 lines · Jiapeng Chong
From: chongjiapeng <[email protected]>
This symbol is not used outside of
libahci.c, so marks it static.Fix the following sparse warning:
drivers/ata/libahci.c:134:18: warning: symbol 'ahci_sdev_attrs' was not declared. Should it be static?Reported-by Abaci Robot <[email protected]>Fixes c3f69c7f629f ("scsi: ata: Switch to attribute groups")Signed-off-by chongjiapeng <[email protected]>--- drivers/ata/libahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/libahci.c +0
-0
drivers/ata/libahci.c const struct attribute_group *ahci_shost_groups[] = { · line 137
Quoted 8 lines
drivers/ata/libahci.c +1
-1@@ -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,
Jiapeng,
This patch does not apply to the current libata tree since it is against the latest changes queued in the scsi tree. After fixing the patch title, can you resend this patch to the linux-scsi list and to Martin ?
Signature · 2 lines
Damien Le Moal Western Digital Research