Skip to contentSkip to conversation

arm64/sysreg: Remove unused define ARM64_FEATURE_FIELD_BITS

PATCH Applied Ben Horgan 3 participants 3 messages Nov 25, 2025 – Nov 27, 2025 arm64

lore
Share & tools
lore

Ben Horgan

author
#0 lore raw

PATCH 1/1 arm64/sysreg: Remove unused define ARM64_FEATURE_FIELD_BITS

The define ARM64_FEATURE_FIELD_BITS is now unused and feature id fields don't always have 4 bits. Remove it.

---
It is still used in tools/testing/selftests/kvm/arm64/set_id_regs.c but this uses the define in tools/arch/arm64/include/asm/sysreg.h. I have submitted a separate patch to remove it from these as well:

https://lore.kernel.org/kvmarm/[email protected]/

Based on Linux 6.18-rc4

---
 arch/arm64/include/asm/sysreg.h | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/include/asm/sysreg.h +0 -2
index c231d2a3e515..1f3303d09a27 100644
@@ -1129,8 +1129,6 @@
 #define gicr_insn(insn)			read_sysreg_s(GICV5_OP_GICR_##insn)
 #define gic_insn(v, insn)		write_sysreg_s(v, GICV5_OP_GIC_##insn)
 
-#define ARM64_FEATURE_FIELD_BITS	4
-
 #ifdef __ASSEMBLY__
 
 	.macro	mrs_s, rt, sreg
Signature · 1 line
2.43.0