ec/hp/kbc1126: Use packed over attrbute__((packed))

Change-Id: Ia4b142a5eac2aab7e4fa6e32ed68c96934ec6c32
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77731
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
Elyes Haouas 2023-09-09 08:00:59 +02:00 committed by Felix Singer
parent edef7d476e
commit c0b35ccb51
1 changed files with 2 additions and 2 deletions

View File

@ -5,14 +5,14 @@
#include <stdint.h> #include <stdint.h>
struct __attribute__((__packed__)) ecfw_addr { struct __packed ecfw_addr {
/* 8-byte offset of firmware blob in big endian */ /* 8-byte offset of firmware blob in big endian */
uint16_t off; uint16_t off;
/* bitwise inverse of "off", for error checking */ /* bitwise inverse of "off", for error checking */
uint16_t inv; uint16_t inv;
}; };
struct __attribute__((__packed__)) ecfw_ptr { struct __packed ecfw_ptr {
struct ecfw_addr fw1; struct ecfw_addr fw1;
struct ecfw_addr fw2; struct ecfw_addr fw2;
}; };