[coreboot-gerrit] New patch to review for coreboot: d44d436 soc: Add missing header guards

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Thu Jul 31 09:09:38 CEST 2014


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6422

-gerrit

commit d44d43666c3f0828c9dc3df81da0568dbca59d94
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Thu Jul 31 17:05:19 2014 +1000

    soc: Add missing header guards
    
    Change-Id: I0729b754226346df1e3be5f20c3a4b34cc76ed72
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/soc/intel/baytrail/acpi/irq_helper.h     | 5 +++++
 src/soc/intel/baytrail/baytrail/nvs.h        | 5 +++++
 src/soc/intel/fsp_baytrail/acpi/irq_helper.h | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/src/soc/intel/baytrail/acpi/irq_helper.h b/src/soc/intel/baytrail/acpi/irq_helper.h
index b19895b..01718ba 100644
--- a/src/soc/intel/baytrail/acpi/irq_helper.h
+++ b/src/soc/intel/baytrail/acpi/irq_helper.h
@@ -17,6 +17,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef IRQ_HELPER_H
+#define IRQ_HELPER_H
+
 #undef PCI_DEV_PIRQ_ROUTES
 #undef ACPI_DEV_APIC_IRQ
 #undef PCI_DEV_PIRQ_ROUTE
@@ -46,3 +49,5 @@
 
 /* Include the mainboard irq route definition. */
 #include "irqroute.h"
+
+#endif /* IRQ_HELPER_H */
diff --git a/src/soc/intel/baytrail/baytrail/nvs.h b/src/soc/intel/baytrail/baytrail/nvs.h
index dbf72e2..6549409 100644
--- a/src/soc/intel/baytrail/baytrail/nvs.h
+++ b/src/soc/intel/baytrail/baytrail/nvs.h
@@ -18,6 +18,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef NVS_H
+#define NVS_H
+
 #include <vendorcode/google/chromeos/gnvs.h>
 #include <baytrail/device_nvs.h>
 
@@ -70,3 +73,5 @@ typedef struct {
 /* Used in SMM to find the ACPI GNVS address */
 global_nvs_t *smm_get_gnvs(void);
 #endif
+
+#endif /* NVS_H */
diff --git a/src/soc/intel/fsp_baytrail/acpi/irq_helper.h b/src/soc/intel/fsp_baytrail/acpi/irq_helper.h
index e3a23d8..350d5dc 100644
--- a/src/soc/intel/fsp_baytrail/acpi/irq_helper.h
+++ b/src/soc/intel/fsp_baytrail/acpi/irq_helper.h
@@ -18,6 +18,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef IRQ_HELPER_H
+#define IRQ_HELPER_H
+
 /*
  * This file will use arch/x86/acpi/irqroute.asl and mainboard/irqroute.h
  * to generate the ACPI IRQ routing for the mainboard being compiled.
@@ -53,3 +56,5 @@
 
 /* Include the mainboard irq route definition */
 #include "irqroute.h"
+
+#endif /* IRQ_HELPER_H */



More information about the coreboot-gerrit mailing list