From 297c8dfc3a0c5f493eb61cbf227033c51dcca174 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Mon, 10 Jan 2022 11:05:27 +0200 Subject: [PATCH] drivers/mmcsd/sdio.c: Fix struct packing of sdio_resp_r5 The struct memeber should be packed as well Signed-off-by: Jukka Laitinen --- drivers/mmcsd/sdio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmcsd/sdio.c b/drivers/mmcsd/sdio.c index b61ed43cd3e..003b52bae32 100644 --- a/drivers/mmcsd/sdio.c +++ b/drivers/mmcsd/sdio.c @@ -66,6 +66,7 @@ begin_packed_struct struct sdio_cmd53 begin_packed_struct struct sdio_resp_r5 { uint32_t data : 8; + begin_packed_struct struct { uint32_t out_of_range : 1; @@ -75,7 +76,8 @@ begin_packed_struct struct sdio_resp_r5 uint32_t io_current_state : 2; uint32_t illegal_command : 1; uint32_t com_crc_error : 1; - } flags; + } + end_packed_struct flags; uint32_t reserved_16 : 16; } end_packed_struct;