]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: arm64/sha - avoid non-standard inline asm tricks
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 26 Apr 2017 16:11:32 +0000 (17:11 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 May 2017 05:19:52 +0000 (13:19 +0800)
commitf4857f4c2ee9aa4e2aacac1a845352b00197fb57
treead60487f74b59fdda78a38fef7ad133c4bab2cb4
parentac50b78b22cddb8a85b264b1f172c4239e826fd2
crypto: arm64/sha - avoid non-standard inline asm tricks

Replace the inline asm which exports struct offsets as ELF symbols
with proper const variables exposing the same values. This works
around an issue with Clang which does not interpret the "i" (or "I")
constraints in the same way as GCC.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/sha1-ce-core.S
arch/arm64/crypto/sha1-ce-glue.c
arch/arm64/crypto/sha2-ce-core.S
arch/arm64/crypto/sha2-ce-glue.c