diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-06-28 16:54:45 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-30 09:20:02 +0000 |
commit | bdcccc0b88bc10e299468e317d24a78367536fb2 (patch) | |
tree | 093d7de361be6ae5f36fd15e4ffb63826dba047a /src | |
parent | 05ba1e9bf2cf34c34de2d5ac62c827ac6d016cf8 (diff) |
sb/intel: Add include guards on nvs.h
Change-Id: I110974f3161f2991536df50acdfe32f68bd2cc60
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42850
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/southbridge/intel/bd82x6x/nvs.h | 5 | ||||
-rw-r--r-- | src/southbridge/intel/i82801dx/nvs.h | 7 | ||||
-rw-r--r-- | src/southbridge/intel/ibexpeak/nvs.h | 6 | ||||
-rw-r--r-- | src/southbridge/intel/lynxpoint/nvs.h | 5 |
4 files changed, 23 insertions, 0 deletions
diff --git a/src/southbridge/intel/bd82x6x/nvs.h b/src/southbridge/intel/bd82x6x/nvs.h index ae3304ee8e..b75e0ab025 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 @@ struct __packed global_nvs { }; 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 3cd0afb1a9..1f8f6d1ad1 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 @@ struct __packed global_nvs { 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 834b3af8a8..8823d83773 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 @@ struct __packed global_nvs { }; 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 4abe026354..154e285a4a 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 @@ struct __packed global_nvs { }; check_member(global_nvs, chromeos, GNVS_CHROMEOS_ACPI_OFFSET); + +#endif /* SOUTHBRIDGE_INTEL_LYNXPOINT_NVS_H */ |