Skip to contentSkip to conversation

arm64: Delete the zero_za macro

PATCH Applied Zenghui Yu 3 participants 3 messages Dec 5, 2023 – Dec 11, 2023 arm64

lore
Share & tools
lore

Zenghui Yu

author
#0 lore raw

PATCH 1/1 arm64: Delete the zero_za macro

zero_za was introduced in commit ca8a4ebcff44 ("arm64/sme: Manually encode SME instructions") but doesn't appear to have any in kernel user. Drop it.

---
 arch/arm64/include/asm/fpsimdmacros.h | 8 --------
 1 file changed, 8 deletions(-)
arch/arm64/include/asm/fpsimdmacros.h +0 -8
index cdf6a35e3994..cda81d009c9b 100644
@@ -242,14 +242,6 @@
 		| (\nx << 5)
 .endm
 
-/*
- * Zero the entire ZA array
- *	ZERO ZA
- */
-.macro zero_za
-	.inst 0xc00800ff
-.endm
-
 .macro __for from:req, to:req
 	.if (\from) == (\to)
 		_for__body %\from
Signature · 1 line
2.33.0
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Zenghui Yu

zero_za was introduced in commit ca8a4ebcff44 ("arm64/sme: Manually encode SME instructions") but doesn't appear to have any in kernel user. Drop it.

You're right that this isn't used, though OTOH it's not exactly doing any harm either and as a macro doesn't inflate the image or anything.

maintainer Applied
#2 lore raw
In reply to Zenghui Yu
Quoted 4 lines · Zenghui Yu

zero_za was introduced in commit ca8a4ebcff44 ("arm64/sme: Manually encode SME instructions") but doesn't appear to have any in kernel user. Drop it.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: Delete the zero_za macro

      https://git.kernel.org/arm64/c/86d1921c9d5a

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev