]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
CRYPTO: Fix more AES build errors
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Jan 2014 17:14:45 +0000 (17:14 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 5 Jan 2014 13:59:56 +0000 (13:59 +0000)
commitd2eca20d77d9d42f3163a0a3d6ead75ee3635f99
treefb4c4f1ed70adbf6e49065aeb4227e3e45bb6698
parentefea3403d4b7c6d1dd5d5ac3234c161e8b314d66
CRYPTO: Fix more AES build errors

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to `bsaes_xts_decrypt'
arch/arm/crypto/built-in.o: In function `aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to `bsaes_xts_encrypt'
arch/arm/crypto/built-in.o: In function `aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to `bsaes_ctr32_encrypt_blocks'
arch/arm/crypto/built-in.o: In function `aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

This code is already runtime-conditional on NEON being supported, so
there's no point compiling it out depending on the minimum build
architecture.

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/crypto/aesbs-core.S_shipped
arch/arm/crypto/bsaes-armv7.pl