Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Bryan O'Donoghue's avatar
    ffab61f4
    imx: hab: Fix usage of packed attribute · ffab61f4
    Bryan O'Donoghue authored
    
    commit ed286bc8 ("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: default avatarBryan 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: default avatarFabio Estevam <fabio.estevam@nxp.com>
    ffab61f4
    History
    imx: hab: Fix usage of packed attribute
    Bryan O'Donoghue authored
    
    commit ed286bc8 ("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: default avatarBryan 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: default avatarFabio Estevam <fabio.estevam@nxp.com>