From d7ee9dda708321f80161695714737b0f974509d3 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 24 Feb 2016 15:03:58 +0800 Subject: northbridge/intel: add missing #include guards I first found the missing of #include guards when I tried to include both sandybridge/gma.h and sandybridge/sandybridge.h, but sandybridge.h includes gma.h in it and gives a compile error. Change-Id: I13fdb8014b82e6065be2064137b7ea10062deaca Signed-off-by: Iru Cai Reviewed-on: https://review.coreboot.org/13775 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/northbridge/intel/fsp_sandybridge/chip.h | 5 +++++ src/northbridge/intel/fsp_sandybridge/gma.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/northbridge/intel/fsp_sandybridge') diff --git a/src/northbridge/intel/fsp_sandybridge/chip.h b/src/northbridge/intel/fsp_sandybridge/chip.h index e6f3a54378..eb86b8381e 100644 --- a/src/northbridge/intel/fsp_sandybridge/chip.h +++ b/src/northbridge/intel/fsp_sandybridge/chip.h @@ -13,6 +13,9 @@ * GNU General Public License for more details. */ +#ifndef NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE_CHIP_H +#define NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE_CHIP_H + #include /* @@ -39,3 +42,5 @@ struct northbridge_intel_fsp_sandybridge_config { struct i915_gpu_controller_info gfx; }; + +#endif /* NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE_CHIP_H */ diff --git a/src/northbridge/intel/fsp_sandybridge/gma.h b/src/northbridge/intel/fsp_sandybridge/gma.h index baab695ee6..5693e0c66d 100644 --- a/src/northbridge/intel/fsp_sandybridge/gma.h +++ b/src/northbridge/intel/fsp_sandybridge/gma.h @@ -13,6 +13,9 @@ * GNU General Public License for more details. */ +#ifndef NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE_GMA_H +#define NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE_GMA_H + /* mailbox 0: header */ typedef struct { u8 signature[16]; @@ -161,3 +164,5 @@ typedef struct { } __attribute__((packed)) optionrom_vbt_t; #define VBT_SIGNATURE 0x54425624 + +#endif /* NORTHBRIDGE_INTEL_FSP_SANDYBRIDGE_GMA_H */ -- cgit v1.2.3