From: Andrew Lunn Date: Thu, 10 May 2012 11:25:33 +0000 (+0200) Subject: Orion5x: Fix warning: struct pci_dev declared inside paramter list X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ed272f245893f2278a9f5a59bacd857664c7d1f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Orion5x: Fix warning: struct pci_dev declared inside paramter list Orion5x board files which don't have PCI give warnings: arch/arm/mach-orion5x/common.h:54:38: warning: 'struct pci_dev' declared inside parameter list. Add a forward declaration in the header file, which is the pattern used for other PCI structures. Signed-off-by: Andrew Lunn --- diff --git a/arch/arm/mach-orion5x/common.h b/arch/arm/mach-orion5x/common.h index 2e6454c8d4ba..31bab92ce038 100644 --- a/arch/arm/mach-orion5x/common.h +++ b/arch/arm/mach-orion5x/common.h @@ -45,6 +45,7 @@ void orion5x_restart(char, const char *); */ struct pci_bus; struct pci_sys_data; +struct pci_dev; void orion5x_pcie_id(u32 *dev, u32 *rev); void orion5x_pci_disable(void);