arm64: Remove unused assembly macro
authorJulien Thierry <julien.thierry@arm.com>
Thu, 4 Jul 2019 13:44:04 +0000 (14:44 +0100)
committerWill Deacon <will@kernel.org>
Mon, 5 Aug 2019 10:06:33 +0000 (11:06 +0100)
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>
arch/arm64/include/asm/assembler.h

index e3a15c751b1398e911c19c3a879e9d1e766410f4..9f7395a1177f3b304e6e73a290bbeb0851d05edb 100644 (file)
@@ -123,17 +123,6 @@ alternative_else
 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
  */