From b4cf1f4c82dd837804b57ba01b35c283bff266e6 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 7 Jul 2025 04:29:25 -0400 Subject: kernel: nvme: Pack nvme_smart_data struct Signed-off-by: Ian Moffett --- sys/include/dev/ic/nvmevar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/include/dev/ic/nvmevar.h b/sys/include/dev/ic/nvmevar.h index 3b06ad0..8dbc7b9 100644 --- a/sys/include/dev/ic/nvmevar.h +++ b/sys/include/dev/ic/nvmevar.h @@ -31,6 +31,7 @@ #define _IC_NVMEVAR_H_ #include +#include /* Admin commands */ #define NVME_OP_CREATE_IOSQ 0x01 @@ -79,7 +80,7 @@ * @temp1_total_time: Total time for tempature 1 * @temp2_total_time: Total time for tempature 2 */ -struct nvme_smart_data { +struct __packed nvme_smart_data { uint8_t cwarn; uint16_t temp; uint8_t avail_spare; -- cgit v1.2.3