Skip to contentSkip to conversation

PCI: designware: add missing header guards

PATCH Applied Jingoo Han 2 participants 2 messages Oct 5, 2013 – Oct 7, 2013 PCI

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v2 1/1 PCI: designware: add missing header guards

From: Seungwon Jeon <[email protected]>

Add missing header guards against the redundant inclusion.

---
 drivers/pci/host/pcie-designware.h |    5 +++++
 1 file changed, 5 insertions(+)
drivers/pci/host/pcie-designware.h +5 -0
index faccbbf..d87fbae 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 6 lines · Jingoo Han

From: Seungwon Jeon <[email protected]>

Add missing header guards against the redundant inclusion.

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
index faccbbf..d87fbae 100644
@@ -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