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)
committerIliyan Malchev <malchev@google.com>
Fri, 2 Jan 2015 20:36:57 +0000 (12:36 -0800)
commit06abd742a8657de597f6be838e7c1d46311b8ebb
tree35f30a83d852a748c554892e0433a42842a03b84
parent9d691d9e8e573ec4205cca8d20777c8f27c7dc69
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