From cb3eaf680a367d3ea54741cb194c6e2c2af14858 Mon Sep 17 00:00:00 2001 From: Jonathan Zhang Date: Mon, 24 Oct 2022 13:48:38 -0700 Subject: drivers/ipmi/ipmi_ops.h: add __packed to sel_rec structs Align with BMC on the SEL record format. Change-Id: Icfcef684caa253663503eadffc819ad2ab65550f Signed-off-by: Yiwei Tang Signed-off-by: Jonathan Zhang Reviewed-on: https://review.coreboot.org/c/coreboot/+/68757 Reviewed-by: Shuming Chu (Shuming) Reviewed-by: TangYiwei Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/drivers/ipmi/ipmi_ops.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drivers/ipmi/ipmi_ops.h') diff --git a/src/drivers/ipmi/ipmi_ops.h b/src/drivers/ipmi/ipmi_ops.h index 7a92a28121..788ae85d76 100644 --- a/src/drivers/ipmi/ipmi_ops.h +++ b/src/drivers/ipmi/ipmi_ops.h @@ -57,17 +57,17 @@ struct standard_spec_sel_rec { uint8_t sensor_num; uint8_t event_dir_type; uint8_t event_data[3]; -}; +} __packed; struct oem_ts_spec_sel_rec { uint32_t timestamp; uint8_t manf_id[3]; uint8_t oem_defined[6]; -}; +} __packed; struct oem_nots_spec_sel_rec { uint8_t oem_defined[13]; -}; +} __packed; /* SEL Event Record */ struct sel_event_record { -- cgit v1.2.3