]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
aes: make apply_cbc_chain_data non-static
authorStephen Warren <swarren@nvidia.com>
Fri, 18 Apr 2014 16:28:58 +0000 (10:28 -0600)
committerTom Rini <trini@ti.com>
Fri, 18 Apr 2014 20:14:17 +0000 (16:14 -0400)
commit53eb768dfb97269ccec60d34321252b1ee1850d9
tree40a54e21058a7a3a7b20b12d3e2e60501b996c1a
parenta8b993eb81c142a439c24b871a2317f765fe5397
aes: make apply_cbc_chain_data non-static

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: 6e7b9f4fa0ae ("aes: Move the AES-128-CBC encryption function to common code")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Marek Vasut <marex@denx.de>
arch/arm/cpu/tegra20-common/crypto.c
include/aes.h
lib/aes.c