summary refs log tree commit diff
path: root/arch/arm64/include/asm
diff options
context:
space:
mode:
authorJulien Thierry <julien.thierry@arm.com>2019-07-04 14:44:04 +0100
committerWill Deacon <will@kernel.org>2019-08-05 11:06:33 +0100
commitc87857945b0e61c46222798b56fb1b0f4868088b (patch)
treecb5b91fb0084cc832c691fe248531b8ed7aae099 /arch/arm64/include/asm
parente21a712a9685488f5ce80495b37b9fdbe96c230d (diff)
downloadlinux-c87857945b0e61c46222798b56fb1b0f4868088b.tar.gz
arm64: Remove unused assembly macro
As of commit 4141c857fd09dbed480f021b3eece4f46c653161 ("arm64: convert
raw syscall invocation to C"), moving syscall handling from assembly to
C, the macro mask_nospec64 is no longer referenced.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm')
-rw-r--r--arch/arm64/include/asm/assembler.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h
index e3a15c751b13..9f7395a1177f 100644
--- a/arch/arm64/include/asm/assembler.h
+++ b/arch/arm64/include/asm/assembler.h
@@ -124,17 +124,6 @@ alternative_endif
 	.endm
 
 /*
- * Sanitise a 64-bit bounded index wrt speculation, returning zero if out
- * of bounds.
- */
-	.macro	mask_nospec64, idx, limit, tmp
-	sub	\tmp, \idx, \limit
-	bic	\tmp, \tmp, \idx
-	and	\idx, \idx, \tmp, asr #63
-	csdb
-	.endm
-
-/*
  * NOP sequence
  */
 	.macro	nops, num