include: Use static asserts for FW_DYNAMIC_INFO_xxx_OFFSET defines
authorXiang W <wxjstz@126.com>
Wed, 16 Mar 2022 10:19:18 +0000 (18:19 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 27 Mar 2022 04:14:58 +0000 (09:44 +0530)
commit7924a0b220b703ccecd4be654a682e7ce5176e82
tree71b45e876e833ab25c26ecd74fd2e802a8b9b8c4
parent1b42d3ace3ed38bda35276838a880db24ba7db82
include: Use static asserts for FW_DYNAMIC_INFO_xxx_OFFSET defines

Add static detection to prevent the modification of struct fw_dynamic_info
from forgetting the modification of FW_DYNAMIC_INFO_xxx_OFFSET

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/fw_dynamic.h