summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-03-09 13:07:20 +0000
committerStefano Babic <sbabic@denx.de>2018-03-11 16:00:00 +0100
commitf0d5bd4ba54862190f87295cc5a59e35a1e302c4 (patch)
tree9dd79d28d8ea26889fef72838ea00976cd74138c /arch/arm/include/asm
parentffab61f4aaed85d1a1d7543a0ef1d949fabbdf84 (diff)
imx: hab: Make usage of packed attribute consistent
commit cd2d46003ce1 ("arm: imx: hab: Add IVT header definitions") declares struct ivt_header as "__attribute__((packed))". commit ed286bc80e9d ("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: Bryan 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: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/mach-imx/hab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h
index a522cbab89..ce9a44dacd 100644
--- a/arch/arm/include/asm/mach-imx/hab.h
+++ b/arch/arm/include/asm/mach-imx/hab.h
@@ -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 */