summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorKim Phillips2015-01-23 02:05:06 +0100
committerScott Wood2015-01-30 02:56:15 +0100
commit6d5f6a0eba15c1d2cfd367f1c3fb77ab2bfe8ca8 (patch)
tree7ffda044bd5380059212cabb603970c6d688737b /arch/powerpc/include
parentpowerpc/powernv: Don't alloc IRQ map if necessary (diff)
downloadkernel-qcow2-linux-6d5f6a0eba15c1d2cfd367f1c3fb77ab2bfe8ca8.tar.gz
kernel-qcow2-linux-6d5f6a0eba15c1d2cfd367f1c3fb77ab2bfe8ca8.tar.xz
kernel-qcow2-linux-6d5f6a0eba15c1d2cfd367f1c3fb77ab2bfe8ca8.zip
powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN
Fix this: CC arch/powerpc/sysdev/fsl_pci.o arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pcie_check_link': arch/powerpc/sysdev/fsl_pci.c:91:1: error: the frame size of 1360 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] when configuring FRAME_WARN, by refactoring indirect_read_config() to take hose and bus number instead of the 1344-byte struct pci_bus. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/pci-bridge.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h
index 725247beebec..546d036fe925 100644
--- a/arch/powerpc/include/asm/pci-bridge.h
+++ b/arch/powerpc/include/asm/pci-bridge.h
@@ -119,6 +119,10 @@ extern void setup_indirect_pci(struct pci_controller* hose,
extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn,
int offset, int len, u32 *val);
+extern int __indirect_read_config(struct pci_controller *hose,
+ unsigned char bus_number, unsigned int devfn,
+ int offset, int len, u32 *val);
+
extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn,
int offset, int len, u32 val);