Skip to contentSkip to conversation

powerpc/pci: remove duplicate declaration of pci_bus_find_capability

PATCH In review Wei Yang 2 participants 4 messages Sep 19, 2014 – Oct 14, 2014 PowerPC

lore
Share & tools
lore

Wei Yang

author
#0 lore raw

PATCH 1/1 powerpc/pci: remove duplicate declaration of pci_bus_find_capability

pci_bus_find_capability() is decleared in pci.h, so it is not necessary to do it again.

This patch removes it.

---
 arch/powerpc/kernel/pci-common.c |    1 -
 1 file changed, 1 deletion(-)
arch/powerpc/kernel/pci-common.c +0 -1
index b2814e2..9cfa069 100644
@@ -1561,7 +1561,6 @@ EARLY_PCI_OP(write, byte, u8)
 EARLY_PCI_OP(write, word, u16)
 EARLY_PCI_OP(write, dword, u32)
 
-extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);
 int early_find_capability(struct pci_controller *hose, int bus, int devfn,
 			  int cap)
 {
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Wei Yang

pci_bus_find_capability() is decleared in pci.h, so it is not necessary to do it again.

This patch removes it.

Thanks,
Gavin

Quoted 19 lines

---
arch/powerpc/kernel/pci-common.c | 1 -

1 file changed, 1 deletion(-)
arch/powerpc/kernel/pci-common.c +0 -1
index b2814e2..9cfa069 100644
@@ -1561,7 +1561,6 @@ EARLY_PCI_OP(write, byte, u8)
 EARLY_PCI_OP(write, word, u16)
 EARLY_PCI_OP(write, dword, u32)
 
-extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);
 int early_find_capability(struct pci_controller *hose, int bus, int devfn,
 			  int cap)
 {
Signature · 1 line
1.7.9.5
author
#2 lore raw
Quoted 4 lines · Gavin Shan
Quoted 3 lines · Wei Yang

pci_bus_find_capability() is decleared in pci.h, so it is not necessary to do it again.

Quoted 8 lines
Quoted 3 lines

This patch removes it.

Thanks,
Gavin

Hi, Michael

I see this is not merged in your tree. Do you have some comment?

Quoted 20 lines
Quoted 20 lines

---
arch/powerpc/kernel/pci-common.c | 1 -

1 file changed, 1 deletion(-)
arch/powerpc/kernel/pci-common.c +0 -1
index b2814e2..9cfa069 100644
@@ -1561,7 +1561,6 @@ EARLY_PCI_OP(write, byte, u8)
 EARLY_PCI_OP(write, word, u16)
 EARLY_PCI_OP(write, dword, u32)
 
-extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);
 int early_find_capability(struct pci_controller *hose, int bus, int devfn,
 			  int cap)
 {
Signature · 1 line
1.7.9.5
Signature · 2 lines
Richard Yang
Help you, Help me
author
#3 lore raw
Quoted 9 lines · Wei Yang
Quoted 8 lines · Gavin Shan
Quoted 6 lines · Wei Yang

pci_bus_find_capability() is decleared in pci.h, so it is not necessary to do it again.

This patch removes it.

Quoted 9 lines
Quoted 4 lines

Thanks,
Gavin

Hi, Michael

I see this is not merged in your tree. Do you have some comment?

Oops,

As pointed by Gavin, it is in the next branch.

Quoted 24 lines
Quoted 20 lines
Quoted 20 lines

---
arch/powerpc/kernel/pci-common.c | 1 -

1 file changed, 1 deletion(-)
arch/powerpc/kernel/pci-common.c +0 -1
index b2814e2..9cfa069 100644
@@ -1561,7 +1561,6 @@ EARLY_PCI_OP(write, byte, u8)
 EARLY_PCI_OP(write, word, u16)
 EARLY_PCI_OP(write, dword, u32)
 
-extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);
 int early_find_capability(struct pci_controller *hose, int bus, int devfn,
 			  int cap)
 {
Signature · 1 line
1.7.9.5
Signature · 2 lines
Richard Yang
Help you, Help me
Signature · 2 lines
Richard Yang
Help you, Help me