Skip to contentSkip to conversation

unmodified_drivers: change header string

PATCH In review Olaf Hering 2 participants 2 messages Aug 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unmodified_drivers: change header string

_XEN_PLATFORM_PCI_H is already used by upstream linux/xen/platform_pci.h. Adjust the string to avoid compile errors when xen/platform_pci.h is included in platform-pci.c.

---
 unmodified_drivers/linux-2.6/platform-pci/platform-pci.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
unmodified_drivers/linux-2.6/platform-pci/platform-pci.h +3 -3
index 2537213..5fd0e6a 100644
@@ -19,8 +19,8 @@
  * Place - Suite 330, Boston, MA 02111-1307 USA.
  */
 
-#ifndef _XEN_PLATFORM_PCI_H
-#define _XEN_PLATFORM_PCI_H
+#ifndef _UNMODIFIED_DRIVERS_XEN_PLATFORM_PCI_H
+#define _UNMODIFIED_DRIVERS_XEN_PLATFORM_PCI_H
 
 #include <linux/pci.h>
 
@@ -29,4 +29,4 @@ void platform_pci_resume(void);
 
 extern struct pci_dev *xen_platform_pdev;
 
-#endif /* _XEN_PLATFORM_PCI_H */
+#endif /* _UNMODIFIED_DRIVERS_XEN_PLATFORM_PCI_H */
#1 lore raw

unmodified_drivers/linux-2.6/platform-pci/platform-pci.h line 23

Quoted 11 lines
Quoted 1 line
Quoted 1 line · Olaf Hering
unmodified_drivers/linux-2.6/platform-pci/platform-pci.h +2 -2
@@ -19,8 +19,8 @@
  * Place - Suite 330, Boston, MA 02111-1307 USA.
  */
 
-#ifndef _XEN_PLATFORM_PCI_H
-#define _XEN_PLATFORM_PCI_H
+#ifndef _UNMODIFIED_DRIVERS_XEN_PLATFORM_PCI_H
+#define _UNMODIFIED_DRIVERS_XEN_PLATFORM_PCI_H

This is not only ugly, but plain pointless: Private headers, especially when not included from other headers (and hence there's no risk of multiple inclusion) don't need such guards at all. Iow I'm not really willing to accept the above, but I wouldn't mind a patch removing the guards.

Jan