diff --git a/src/commonlib/bsd/include/commonlib/bsd/metadata_hash.h b/src/commonlib/bsd/include/commonlib/bsd/metadata_hash.h index d5e54b508e..f73700ec02 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/metadata_hash.h +++ b/src/commonlib/bsd/include/commonlib/bsd/metadata_hash.h @@ -8,7 +8,7 @@ /* This structure is embedded somewhere in the (uncompressed) bootblock. */ struct metadata_hash_anchor { - uint8_t magic[8]; + uint8_t __nonstring magic[8]; struct vb2_hash cbfs_hash; /* NOTE: This is just reserving space. sizeof(struct vb2_hash) may change between configurations/versions and cannot be relied upon, so the FMAP hash must be placed diff --git a/src/commonlib/include/commonlib/coreboot_tables.h b/src/commonlib/include/commonlib/coreboot_tables.h index 87da127ef9..70c9f17209 100644 --- a/src/commonlib/include/commonlib/coreboot_tables.h +++ b/src/commonlib/include/commonlib/coreboot_tables.h @@ -321,7 +321,7 @@ struct lb_gpio { #define ACTIVE_HIGH 1 uint32_t value; #define GPIO_MAX_NAME_LENGTH 16 - uint8_t name[GPIO_MAX_NAME_LENGTH]; + uint8_t __nonstring name[GPIO_MAX_NAME_LENGTH]; }; struct lb_gpios { diff --git a/src/include/cpu/intel/smm_reloc.h b/src/include/cpu/intel/smm_reloc.h index 2b25c75705..f3fc4d29e8 100644 --- a/src/include/cpu/intel/smm_reloc.h +++ b/src/include/cpu/intel/smm_reloc.h @@ -28,7 +28,7 @@ struct smm_relocation_params { extern struct smm_relocation_params smm_reloc_params; struct ied_header { - char signature[10]; + char __nonstring signature[10]; u32 size; u8 reserved[34]; } __packed; diff --git a/src/include/edid.h b/src/include/edid.h index b2d6aa2cab..cd8df7e3ed 100644 --- a/src/include/edid.h +++ b/src/include/edid.h @@ -82,8 +82,8 @@ struct edid { u32 bytes_per_line; int hdmi_monitor_detected; - char ascii_string[EDID_ASCII_STRING_LENGTH + 1]; - char manufacturer_name[3 + 1]; + char __nonstring ascii_string[EDID_ASCII_STRING_LENGTH + 1]; + char __nonstring manufacturer_name[3 + 1]; }; enum edid_status { diff --git a/src/northbridge/intel/gm45/gm45.h b/src/northbridge/intel/gm45/gm45.h index f68bfdee7a..90ab570524 100644 --- a/src/northbridge/intel/gm45/gm45.h +++ b/src/northbridge/intel/gm45/gm45.h @@ -441,7 +441,7 @@ void mb_pre_raminit_setup(sysinfo_t *); /* optional */ void mb_post_raminit_setup(void); /* optional */ struct blc_pwm_t { - char ascii_string[13]; + char __nonstring ascii_string[13]; int pwm_freq; /* In Hz */ }; int get_blc_values(const struct blc_pwm_t **entries);