Skip to content
Snippets Groups Projects
Forked from KED Software Projects / Miscellaneous / KED U-Boot Fork
Source project has a limited visibility.
  • Stephen Warren's avatar
    53eb768d
    aes: make apply_cbc_chain_data non-static · 53eb768d
    Stephen Warren authored
    
    Tegra's crypto.c uses apply_cbc_chain_data() to sign the warm restart
    code. This function was recently moved into the core aes.c and made
    static, which prevents the Tegra code from compiling. Make it public
    again to avoid the compile errors:
    
    arch/arm/cpu/tegra20-common/crypto.c: In function ‘sign_object’:
    arch/arm/cpu/tegra20-common/crypto.c:74:3: warning: implicit declaration of function ‘apply_cbc_chain_data’ [-Wimplicit-function-declaration]
    arch/arm/cpu/built-in.o: In function `sign_object':
    .../arch/arm/cpu/tegra20-common/crypto.c:74: undefined reference to `apply_cbc_chain_data'
    .../arch/arm/cpu/tegra20-common/crypto.c:78: undefined reference to `apply_cbc_chain_data'
    
    Fixes: 6e7b9f4f ("aes: Move the AES-128-CBC encryption function to common code")
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    Acked-by: default avatarMarek Vasut <marex@denx.de>
    53eb768d
    History
    aes: make apply_cbc_chain_data non-static
    Stephen Warren authored
    
    Tegra's crypto.c uses apply_cbc_chain_data() to sign the warm restart
    code. This function was recently moved into the core aes.c and made
    static, which prevents the Tegra code from compiling. Make it public
    again to avoid the compile errors:
    
    arch/arm/cpu/tegra20-common/crypto.c: In function ‘sign_object’:
    arch/arm/cpu/tegra20-common/crypto.c:74:3: warning: implicit declaration of function ‘apply_cbc_chain_data’ [-Wimplicit-function-declaration]
    arch/arm/cpu/built-in.o: In function `sign_object':
    .../arch/arm/cpu/tegra20-common/crypto.c:74: undefined reference to `apply_cbc_chain_data'
    .../arch/arm/cpu/tegra20-common/crypto.c:78: undefined reference to `apply_cbc_chain_data'
    
    Fixes: 6e7b9f4f ("aes: Move the AES-128-CBC encryption function to common code")
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    Acked-by: default avatarMarek Vasut <marex@denx.de>