Skip to content

Commit

Permalink
Orion5x: Fix warning: struct pci_dev declared inside paramter list
Browse files Browse the repository at this point in the history
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 <andrew@lunn.ch>
  • Loading branch information
Andrew Lunn committed May 14, 2012
1 parent d48b97b commit 6ed272f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-orion5x/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ed272f

Please sign in to comment.