Skip to contentSkip to conversation

PCI: rcar: make local symbol static

PATCH Applied Jingoo Han 3 participants 3 messages Oct 23, 2014 – Oct 29, 2014

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 PCI: rcar: make local symbol static

Make local symbol static, because this is used only in this file.

---
 drivers/pci/host/pcie-rcar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pcie-rcar.c +1 -1
index 61158e0..0df9b29 100644
@@ -389,7 +389,7 @@ static void rcar_pcie_add_bus(struct pci_bus *bus)
 	}
 }
 
-struct hw_pci rcar_pci = {
+static struct hw_pci rcar_pci = {
 	.setup          = rcar_pcie_setup,
 	.map_irq        = of_irq_parse_and_map_pci,
 	.ops            = &rcar_pcie_ops,
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jingoo Han

Make local symbol static, because this is used only in this file.

Quoted 21 lines
---
 drivers/pci/host/pcie-rcar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pcie-rcar.c +1 -1
index 61158e0..0df9b29 100644
@@ -389,7 +389,7 @@ static void rcar_pcie_add_bus(struct pci_bus *bus)
 	}
 }
 
-struct hw_pci rcar_pci = {
+static struct hw_pci rcar_pci = {
 	.setup          = rcar_pcie_setup,
 	.map_irq        = of_irq_parse_and_map_pci,
 	.ops            = &rcar_pcie_ops,
Signature · 1 line
1.7.9.5
maintainer Applied
#2 lore raw
In reply to Jingoo Han
Quoted 3 lines · Jingoo Han

Make local symbol static, because this is used only in this file.

Applied to pci/host-rcar for v3.19 with Simon's ack, thanks!

Quoted 21 lines
---
 drivers/pci/host/pcie-rcar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pcie-rcar.c +1 -1
index 61158e0..0df9b29 100644
@@ -389,7 +389,7 @@ static void rcar_pcie_add_bus(struct pci_bus *bus)
 	}
 }
 
-struct hw_pci rcar_pci = {
+static struct hw_pci rcar_pci = {
 	.setup          = rcar_pcie_setup,
 	.map_irq        = of_irq_parse_and_map_pci,
 	.ops            = &rcar_pcie_ops,
Signature · 1 line
1.7.9.5