arm64: Delete the zero_za macro

Message ID 20231205160140.1438-1-yuzenghui@huawei.com
State New
Headers
Series arm64: Delete the zero_za macro |

Commit Message

Zenghui Yu Dec. 5, 2023, 4:01 p.m. UTC
  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.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
 arch/arm64/include/asm/fpsimdmacros.h | 8 --------
 1 file changed, 8 deletions(-)
  

Comments

Mark Brown Dec. 5, 2023, 4:56 p.m. UTC | #1
On Wed, Dec 06, 2023 at 12:01:40AM +0800, Zenghui Yu wrote:
> 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.
> 
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>

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.

Acked-by: Mark Brown <broonie@kernel.org>
  
Will Deacon Dec. 11, 2023, 8:27 p.m. UTC | #2
On Wed, 6 Dec 2023 00:01:40 +0800, Zenghui Yu wrote:
> 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,
  

Patch

diff --git a/arch/arm64/include/asm/fpsimdmacros.h b/arch/arm64/include/asm/fpsimdmacros.h
index cdf6a35e3994..cda81d009c9b 100644
--- a/arch/arm64/include/asm/fpsimdmacros.h
+++ b/arch/arm64/include/asm/fpsimdmacros.h
@@ -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