Skip to contentSkip to conversation

PCI: keystone: make local symbol static

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

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

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

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

---
 drivers/pci/host/pci-keystone-dw.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pci-keystone-dw.c +1 -1
index 34086ce..4a97cd1 100644
@@ -201,7 +201,7 @@ static int ks_dw_pcie_msi_map(struct irq_domain *domain, unsigned int irq,
 	return 0;
 }
 
-const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
+static const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
 	.map = ks_dw_pcie_msi_map,
 };
 
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Jingoo Han

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

---
  drivers/pci/host/pci-keystone-dw.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pci-keystone-dw.c +0 -0
index 34086ce..4a97cd1 100644

drivers/pci/host/pci-keystone-dw.c static int ks_dw_pcie_msi_map(struct irq_domain *domain, unsigned int irq, · line 207

Quoted 8 lines
drivers/pci/host/pci-keystone-dw.c +1 -1
@@ -201,7 +201,7 @@ static int ks_dw_pcie_msi_map(struct irq_domain *domain, unsigned int irq,
  	return 0;
  }
 
-const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
+static const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
  	.map = ks_dw_pcie_msi_map,
  };
 

Jingoo Han,

Thanks for the patch.

Signature · 2 lines
Murali Karicheri
Linux Kernel, Texas Instruments
#2 lore raw
In reply to Jingoo Han
Quoted 13 lines · Jingoo Han

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

---
  drivers/pci/host/pci-keystone-dw.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pci-keystone-dw.c +0 -0
index 34086ce..4a97cd1 100644

drivers/pci/host/pci-keystone-dw.c static int ks_dw_pcie_msi_map(struct irq_domain *domain, unsigned int irq, · line 207

Quoted 8 lines
drivers/pci/host/pci-keystone-dw.c +1 -1
@@ -201,7 +201,7 @@ static int ks_dw_pcie_msi_map(struct irq_domain *domain, unsigned int irq,
  	return 0;
  }
 
-const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
+static const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
  	.map = ks_dw_pcie_msi_map,
  };
 

Looks correct.
FWIW, Acked-by: Santosh Shilimkar<[email protected]>

maintainer Applied
#3 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-keystone for v3.19 with acks from Murali and Santosh, thanks!

Quoted 21 lines
---
 drivers/pci/host/pci-keystone-dw.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/pci-keystone-dw.c +1 -1
index 34086ce..4a97cd1 100644
@@ -201,7 +201,7 @@ static int ks_dw_pcie_msi_map(struct irq_domain *domain, unsigned int irq,
 	return 0;
 }
 
-const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
+static const struct irq_domain_ops ks_dw_pcie_msi_domain_ops = {
 	.map = ks_dw_pcie_msi_map,
 };
 
Signature · 1 line
1.7.9.5