From: Bryan O'Donoghue Date: Fri, 9 Mar 2018 13:07:19 +0000 (+0000) Subject: imx: hab: Fix usage of packed attribute X-Git-Tag: v2018.03~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ffab61f4aaed85d1a1d7543a0ef1d949fabbdf84;p=oweals%2Fu-boot.git imx: hab: Fix usage of packed attribute commit ed286bc80e9d ("imx: hab: Check if CSF is valid before authenticating image") makes use of "__packed" as a prefix to the "struct hab_hdr" declaration. With my compiler "gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)" we get: ./arch/arm/include/asm/mach-imx/hab.h:42:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token struct __packed hab_hdr { Fix this problem by including Signed-off-by: Bryan O'Donoghue Cc: Utkarsh Gupta Cc: Breno Lima Cc: Fabio Estevam Reviewed-by: Fabio Estevam --- diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h index 561de9c6f7..a522cbab89 100644 --- a/arch/arm/include/asm/mach-imx/hab.h +++ b/arch/arm/include/asm/mach-imx/hab.h @@ -9,6 +9,7 @@ #define __SECURE_MX6Q_H__ #include +#include /* * IVT header definitions