From a7373674bf3bc1813520297fbd4e818b048bc732 Mon Sep 17 00:00:00 2001 From: Mikhail Zaslonko Date: Mon, 6 May 2024 16:47:09 +0200 Subject: [PATCH] include/boot/os_info: Add static assert for os_info size Acked-by: Alexander Egorenkov Signed-off-by: Mikhail Zaslonko Signed-off-by: Steffen Eiden --- include/boot/os_info.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boot/os_info.h b/include/boot/os_info.h index 679c094c..43135380 100644 --- a/include/boot/os_info.h +++ b/include/boot/os_info.h @@ -58,6 +58,8 @@ struct os_info { uint8_t reserved[3804]; } __packed; +STATIC_ASSERT(sizeof(struct os_info) == 4096) + /* * Return 0 in case of valid os_info * Return -EOS_INFO_MISSING if os_info address is not page aligned or page is