aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/twofish-x86_64-asm_64.S
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2013-01-19 13:39:46 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2013-01-20 10:16:51 +1100
commitd3f5188dfea70e7ea6570bd4bc9d6d7dbd431e39 (patch)
tree54fec05cb617686f30580477102580b93c7ebfc9 /arch/x86/crypto/twofish-x86_64-asm_64.S
parentcrypto: x86/sha1 - assembler clean-ups: use ENTRY/ENDPROC (diff)
downloadlinux-dev-d3f5188dfea70e7ea6570bd4bc9d6d7dbd431e39.tar.xz
linux-dev-d3f5188dfea70e7ea6570bd4bc9d6d7dbd431e39.zip
crypto: x86/twofish - assembler clean-ups: use ENTRY/ENDPROC, localize jump labels
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/twofish-x86_64-asm_64.S')
-rw-r--r--arch/x86/crypto/twofish-x86_64-asm_64.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/crypto/twofish-x86_64-asm_64.S b/arch/x86/crypto/twofish-x86_64-asm_64.S
index 7bcf3fcc3668..a039d21986a2 100644
--- a/arch/x86/crypto/twofish-x86_64-asm_64.S
+++ b/arch/x86/crypto/twofish-x86_64-asm_64.S
@@ -20,6 +20,7 @@
.file "twofish-x86_64-asm.S"
.text
+#include <linux/linkage.h>
#include <asm/asm-offsets.h>
#define a_offset 0
@@ -214,11 +215,7 @@
xor %r8d, d ## D;\
ror $1, d ## D;
-.align 8
-.global twofish_enc_blk
-.global twofish_dec_blk
-
-twofish_enc_blk:
+ENTRY(twofish_enc_blk)
pushq R1
/* %rdi contains the ctx address */
@@ -269,8 +266,9 @@ twofish_enc_blk:
popq R1
movq $1,%rax
ret
+ENDPROC(twofish_enc_blk)
-twofish_dec_blk:
+ENTRY(twofish_dec_blk)
pushq R1
/* %rdi contains the ctx address */
@@ -320,3 +318,4 @@ twofish_dec_blk:
popq R1
movq $1,%rax
ret
+ENDPROC(twofish_dec_blk)