Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/chrp/pci: Make some functions static

These functions can all be static, make it so. Fix warnings treated as
errors with W=1:

arch/powerpc/platforms/chrp/pci.c:34:5: error: no previous prototype for ‘gg2_read_config’ [-Werror=missing-prototypes]
arch/powerpc/platforms/chrp/pci.c:61:5: error: no previous prototype for ‘gg2_write_config’ [-Werror=missing-prototypes]
arch/powerpc/platforms/chrp/pci.c:97:5: error: no previous prototype for ‘rtas_read_config’ [-Werror=missing-prototypes]
arch/powerpc/platforms/chrp/pci.c:112:5: error: no previous prototype for ‘rtas_write_config’ [-Werror=missing-prototypes]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Mathieu Malaterre and committed by
Michael Ellerman
910be6be 5a4b475c

+6 -6
+6 -6
arch/powerpc/platforms/chrp/pci.c
··· 31 31 * limit the bus number to 3 bits 32 32 */ 33 33 34 - int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, 34 + static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, 35 35 int len, u32 *val) 36 36 { 37 37 volatile void __iomem *cfg_data; ··· 58 58 return PCIBIOS_SUCCESSFUL; 59 59 } 60 60 61 - int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, 61 + static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, 62 62 int len, u32 val) 63 63 { 64 64 volatile void __iomem *cfg_data; ··· 94 94 /* 95 95 * Access functions for PCI config space using RTAS calls. 96 96 */ 97 - int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 98 - int len, u32 *val) 97 + static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 98 + int len, u32 *val) 99 99 { 100 100 struct pci_controller *hose = pci_bus_to_host(bus); 101 101 unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) ··· 109 109 return rval? PCIBIOS_DEVICE_NOT_FOUND: PCIBIOS_SUCCESSFUL; 110 110 } 111 111 112 - int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 113 - int len, u32 val) 112 + static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 113 + int len, u32 val) 114 114 { 115 115 struct pci_controller *hose = pci_bus_to_host(bus); 116 116 unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8)