diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-07 04:29:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-07 04:29:25 -0400 |
commit | b4cf1f4c82dd837804b57ba01b35c283bff266e6 (patch) | |
tree | fba3971d741d0f72628f5b2cbfd0e0b916acdf9d /sys/include/dev/ic | |
parent | 45c3cbf482005e430e4d207410c7b5bc398cd87a (diff) |
kernel: nvme: Pack nvme_smart_data struct
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/ic')
-rw-r--r-- | sys/include/dev/ic/nvmevar.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <sys/types.h> +#include <sys/cdefs.h> /* 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; |