Skip to contentSkip to conversation

ahci_platform: make structs static

PATCH Applied Brian Norris 2 participants 2 messages Dec 6, 2012 – Dec 14, 2012

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

PATCH 1/1 ahci_platform: make structs static

These structs are used only for ahci_platform.c, so they should be static. Thanks to Fengguang for the (automated) suggestion.

---
 drivers/ata/ahci_platform.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/ata/ahci_platform.c +3 -3
index 1d90690..1cc467b 100644
@@ -49,12 +49,12 @@ static struct platform_device_id ahci_devtype[] = {
 };
 MODULE_DEVICE_TABLE(platform, ahci_devtype);
 
-struct ata_port_operations ahci_platform_ops = {
+static struct ata_port_operations ahci_platform_ops = {
 	.inherits	= &ahci_ops,
 	.host_stop	= ahci_host_stop,
 };
 
-struct ata_port_operations ahci_platform_retry_srst_ops = {
+static struct ata_port_operations ahci_platform_retry_srst_ops = {
 	.inherits	= &ahci_pmp_retry_srst_ops,
 	.host_stop	= ahci_host_stop,
 };
@@ -323,7 +323,7 @@ disable_unprepare_clk:
 }
 #endif
 
-SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_suspend, ahci_resume);
+static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_suspend, ahci_resume);
 
 static const struct of_device_id ahci_of_match[] = {
 	{ .compatible = "snps,spear-ahci", },
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 8 lines · Brian Norris

These structs are used only for ahci_platform.c, so they should be static. Thanks to Fengguang for the (automated) suggestion.

---
  drivers/ata/ahci_platform.c |    6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

applied