提交 f0d5bd4b 编写于 作者: B Bryan O'Donoghue 提交者: Stefano Babic

imx: hab: Make usage of packed attribute consistent

commit cd2d4600 ("arm: imx: hab: Add IVT header definitions") declares
struct ivt_header as "__attribute__((packed))".

commit ed286bc8 ("imx: hab: Check if CSF is valid before
authenticating image") declares struct hab_hdr with __packed.

This patch makes the __packed convention consistent.
Signed-off-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Utkarsh Gupta <utkarsh.gupta@nxp.com>
Cc: Breno Lima <breno.lima@nxp.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
上级 ffab61f4
......@@ -22,11 +22,11 @@
#define IVT_HEADER_V1 0x40
#define IVT_HEADER_V2 0x41
struct ivt_header {
struct __packed ivt_header {
uint8_t magic;
uint16_t length;
uint8_t version;
} __attribute__((packed));
};
struct ivt {
struct ivt_header hdr; /* IVT header above */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册