]> git.baikalelectronics.ru Git - uboot.git/commit
imx: hab: Fix usage of packed attribute
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 9 Mar 2018 13:07:19 +0000 (13:07 +0000)
committerStefano Babic <sbabic@denx.de>
Sun, 11 Mar 2018 14:59:51 +0000 (15:59 +0100)
commit720a6ca2c92c98ff6b9710449ba7c0328c39ea1c
tree22ba9a000897d2320895e4f00958be96301fcf29
parent4f2144e2e3e903bc1d088e2dc1509f283844bced
imx: hab: Fix usage of packed attribute

commit bc1b348e6133 ("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 <linux/compiler.h>

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>
arch/arm/include/asm/mach-imx/hab.h