PCI: designware: add missing header guards
PATCH v2 1/1 PCI: designware: add missing header guards
From: Seungwon Jeon <[email protected]>
Add missing header guards against the redundant inclusion.
Signed-off-by Seungwon Jeon <[email protected]>
Signed-off-by Jingoo Han <[email protected]>
--- drivers/pci/host/pcie-designware.h | 5 +++++ 1 file changed, 5 insertions(+)
drivers/pci/host/pcie-designware.h +5 -0
@@ -11,6 +11,9 @@* published by the Free Software Foundation. */ +#ifndef _PCIE_DESIGNWARE_H +#define _PCIE_DESIGNWARE_H + struct pcie_port_info { u32 cfg0_size; u32 cfg1_size;
@@ -77,3 +80,5 @@ int dw_pcie_host_init(struct pcie_port *pp);int dw_pcie_setup (int nr,struct pci_sys_data *sys);struct pci_bus *dw_pcie_scan_bus (int nr,struct pci_sys_data *sys);int dw_pcie_map_irq (const struct pci_dev *dev,u8 slot,u8 pin); + +#endif /* _PCIE_DESIGNWARE_H */
Signature · 1 line
1.7.10.4
Quoted 6 lines · Jingoo Han
From: Seungwon Jeon <[email protected]>
Add missing header guards against the redundant inclusion.
Signed-off-by Seungwon Jeon <[email protected]>Signed-off-by Jingoo Han <[email protected]>
Applied to my pci/host-designware branch for v3.13, thanks!
Bjorn
Quoted 28 lines
--- drivers/pci/host/pcie-designware.h | 5 +++++ 1 file changed, 5 insertions(+)drivers/pci/host/pcie-designware.h +5
-1@@ -11,6 +11,9 @@* published by the Free Software Foundation. */ +#ifndef _PCIE_DESIGNWARE_H +#define _PCIE_DESIGNWARE_H + struct pcie_port_info { u32 cfg0_size; u32 cfg1_size;@@ -77,3 +80,5 @@ int dw_pcie_host_init(struct pcie_port *pp);int dw_pcie_setup (int nr,struct pci_sys_data *sys);struct pci_bus *dw_pcie_scan_bus (int nr,struct pci_sys_data *sys);int dw_pcie_map_irq (const struct pci_dev *dev,u8 slot,u8 pin); + +#endif /* _PCIE_DESIGNWARE_H */ --1.7.10.4