]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: fpsimd: Remove <asm/fpsimdmacros.h>
authorMark Rutland <mark.rutland@arm.com>
Wed, 3 Jun 2026 11:06:30 +0000 (12:06 +0100)
committerWill Deacon <will@kernel.org>
Wed, 3 Jun 2026 15:50:49 +0000 (16:50 +0100)
We no longer need any of the remaining macros in <asm/fpsimdmacros.h>.

Remove all of it.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Fuad Tabba <tabba@google.com>
Cc: James Morse <james.morse@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oupton@kernel.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/fpsimdmacros.h [deleted file]

diff --git a/arch/arm64/include/asm/fpsimdmacros.h b/arch/arm64/include/asm/fpsimdmacros.h
deleted file mode 100644 (file)
index a763fd0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * FP/SIMD state saving and restoring macros
- *
- * Copyright (C) 2012 ARM Ltd.
- * Author: Catalin Marinas <catalin.marinas@arm.com>
- */
-
-#include <asm/assembler.h>
-
-/* Sanity-check macros to help avoid encoding garbage instructions */
-
-.macro _check_general_reg nr
-       .if (\nr) < 0 || (\nr) > 30
-               .error "Bad register number \nr."
-       .endif
-.endm
-
-.macro _sve_check_zreg znr
-       .if (\znr) < 0 || (\znr) > 31
-               .error "Bad Scalable Vector Extension vector register number \znr."
-       .endif
-.endm
-
-.macro _sve_check_preg pnr
-       .if (\pnr) < 0 || (\pnr) > 15
-               .error "Bad Scalable Vector Extension predicate register number \pnr."
-       .endif
-.endm
-
-.macro _check_num n, min, max
-       .if (\n) < (\min) || (\n) > (\max)
-               .error "Number \n out of range [\min,\max]"
-       .endif
-.endm
-
-.macro _sme_check_wv v
-       .if (\v) < 12 || (\v) > 15
-               .error "Bad vector select register \v."
-       .endif
-.endm
-
-.macro __for from:req, to:req
-       .if (\from) == (\to)
-               _for__body %\from
-       .else
-               __for %\from, %((\from) + ((\to) - (\from)) / 2)
-               __for %((\from) + ((\to) - (\from)) / 2 + 1), %\to
-       .endif
-.endm
-
-.macro _for var:req, from:req, to:req, insn:vararg
-       .macro _for__body \var:req
-               .noaltmacro
-               \insn
-               .altmacro
-       .endm
-
-       .altmacro
-       __for \from, \to
-       .noaltmacro
-
-       .purgem _for__body
-.endm