]> git.baikalelectronics.ru Git - kernel.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)
commit48f8cd35d3520c42b4870e041d8a60af590a56e9
treead60487f74b59fdda78a38fef7ad133c4bab2cb4
parent66e2358685f15affbb702a3f497e54ab204fe86f
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