PCI: Add include guard to include/linux/pci_ids.h
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 10 Jul 2014 12:05:11 +0000 (14:05 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Jul 2014 22:49:15 +0000 (16:49 -0600)
Adding an include guard frees the preprocessor from reparsing over 2600
#defines in the cases where pci_ids.h is somehow included more than once.
This gives a tiny-but-measurable performance improvement when compiling
such files.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci_ids.h

index 7fa31731c8548e82f354df86571ee1189cec5f95..6ed0bb73a8645d941be32a368060ad7f11abea57 100644 (file)
@@ -6,6 +6,8 @@
  *     Do not add new entries to this file unless the definitions
  *     are shared between multiple drivers.
  */
+#ifndef _LINUX_PCI_IDS_H
+#define _LINUX_PCI_IDS_H
 
 /* Device classes and subclasses */
 
 #define PCI_DEVICE_ID_XEN_PLATFORM     0x0001
 
 #define PCI_VENDOR_ID_OCZ              0x1b85
+
+#endif /* _LINUX_PCI_IDS_H */