]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Revert "crypto: arm64/sha - Add constant operand modifier to ASM_EXPORT"
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Apr 2017 08:09:50 +0000 (16:09 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Apr 2017 08:09:50 +0000 (16:09 +0800)
This reverts commit 42ae2922a68ac8d68927ccb052b486f34e5fba71.  It
causes a regression with older versions of gcc.  The consensus is
that this should instead be fixed in clang.

Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/sha1-ce-glue.c
arch/arm64/crypto/sha2-ce-glue.c

index 6b520e3f3ab1cea91f46fd421a1449e8927c9d36..aefda9868627bde843227d1074e7cc9b17004298 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/module.h>
 
 #define ASM_EXPORT(sym, val) \
-       asm(".globl " #sym "; .set " #sym ", %c0" :: "i"(val));
+       asm(".globl " #sym "; .set " #sym ", %0" :: "I"(val));
 
 MODULE_DESCRIPTION("SHA1 secure hash using ARMv8 Crypto Extensions");
 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");
index e3abe11de48c5bb27e2428d62102f28d2801c935..7cd587564a4176e902f12c7c7043b714caab48ea 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/module.h>
 
 #define ASM_EXPORT(sym, val) \
-       asm(".globl " #sym "; .set " #sym ", %c0" :: "i"(val));
+       asm(".globl " #sym "; .set " #sym ", %0" :: "I"(val));
 
 MODULE_DESCRIPTION("SHA-224/SHA-256 secure hash using ARMv8 Crypto Extensions");
 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");