Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42850 )
Change subject: sb/intel: Add include guards on nvs.h ......................................................................
sb/intel: Add include guards on nvs.h
Change-Id: I110974f3161f2991536df50acdfe32f68bd2cc60 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/southbridge/intel/bd82x6x/nvs.h M src/southbridge/intel/i82801dx/nvs.h M src/southbridge/intel/ibexpeak/nvs.h M src/southbridge/intel/lynxpoint/nvs.h 4 files changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/42850/1
diff --git a/src/southbridge/intel/bd82x6x/nvs.h b/src/southbridge/intel/bd82x6x/nvs.h index ae3304e..b75e0ab 100644 --- a/src/southbridge/intel/bd82x6x/nvs.h +++ b/src/southbridge/intel/bd82x6x/nvs.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef SOUTHBRIDGE_INTEL_BD82X6X_NVS_H +#define SOUTHBRIDGE_INTEL_BD82X6X_NVS_H + #include <commonlib/helpers.h> #include <stdint.h> #include "vendorcode/google/chromeos/gnvs.h" @@ -105,3 +108,5 @@ };
check_member(global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET); + +#endif /* SOUTHBRIDGE_INTEL_BD82X6X_NVS_H */ diff --git a/src/southbridge/intel/i82801dx/nvs.h b/src/southbridge/intel/i82801dx/nvs.h index 3cd0afb..1f8f6d1 100644 --- a/src/southbridge/intel/i82801dx/nvs.h +++ b/src/southbridge/intel/i82801dx/nvs.h @@ -1,5 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef SOUTHBRIDGE_INTEL_I82801DX_NVS_H +#define SOUTHBRIDGE_INTEL_I82801DX_NVS_H + +#include <stdint.h> + struct __packed global_nvs { /* Miscellaneous */ u16 osys; /* 0x00 - Operating System */ @@ -96,3 +101,5 @@ u8 bten; u8 rsvd13[14]; }; + +#endif /* SOUTHBRIDGE_INTEL_I82801DX_NVS_H */ diff --git a/src/southbridge/intel/ibexpeak/nvs.h b/src/southbridge/intel/ibexpeak/nvs.h index 834b3af..8823d83 100644 --- a/src/southbridge/intel/ibexpeak/nvs.h +++ b/src/southbridge/intel/ibexpeak/nvs.h @@ -1,6 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef SOUTHBRIDGE_INTEL_IBEXPEAK_NVS_H +#define SOUTHBRIDGE_INTEL_IBEXPEAK_NVS_H + #include <commonlib/helpers.h> +#include <stdint.h> #include "vendorcode/google/chromeos/gnvs.h"
struct __packed global_nvs { @@ -102,3 +106,5 @@ };
check_member(global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET); + +#endif /* SOUTHBRIDGE_INTEL_IBEXPEAK_NVS_H */ diff --git a/src/southbridge/intel/lynxpoint/nvs.h b/src/southbridge/intel/lynxpoint/nvs.h index 4abe026..154e285 100644 --- a/src/southbridge/intel/lynxpoint/nvs.h +++ b/src/southbridge/intel/lynxpoint/nvs.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef SOUTHBRIDGE_INTEL_LYNXPOINT_NVS_H +#define SOUTHBRIDGE_INTEL_LYNXPOINT_NVS_H + #include <commonlib/helpers.h> #include <stdint.h> #include "vendorcode/google/chromeos/gnvs.h" @@ -79,3 +82,5 @@ };
check_member(global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET); + +#endif /* SOUTHBRIDGE_INTEL_LYNXPOINT_NVS_H */