diff mbox series

arm64: Remove unused assembly macro

Message ID 1562247844-3437-1-git-send-email-julien.thierry@arm.com (mailing list archive)
State New, archived
Headers show
Series arm64: Remove unused assembly macro | expand

Commit Message

Julien Thierry July 4, 2019, 1:44 p.m. UTC
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.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
---
 arch/arm64/include/asm/assembler.h | 11 -----------
 1 file changed, 11 deletions(-)

Comments

Mark Rutland July 4, 2019, 4:03 p.m. UTC | #1
On Thu, Jul 04, 2019 at 02:44:04PM +0100, Julien Thierry wrote:
> 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.
> 
> Signed-off-by: Julien Thierry <julien.thierry@arm.com>

Acked-by: Mark Rutland <mark.rutland@arm.com>

Mark.

> ---
>  arch/arm64/include/asm/assembler.h | 11 -----------
>  1 file changed, 11 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h
> index 570d195..09d5d4a9 100644
> --- a/arch/arm64/include/asm/assembler.h
> +++ b/arch/arm64/include/asm/assembler.h
> @@ -120,17 +120,6 @@
>  	.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
> -- 
> 1.9.1
>
diff mbox series

Patch

diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h
index 570d195..09d5d4a9 100644
--- a/arch/arm64/include/asm/assembler.h
+++ b/arch/arm64/include/asm/assembler.h
@@ -120,17 +120,6 @@ 
 	.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