arm64/sysreg: Remove unused define ARM64_FEATURE_FIELD_BITS
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
@@ -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
Quoted 5 lines · Ben Horgan
The define
ARM64_FEATURE_FIELD_BITSis now unused and feature id fields don't always have 4 bits. Remove it.Signed-off-by Ben Horgan <[email protected]>
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Quoted 4 lines · Ben Horgan
The define
ARM64_FEATURE_FIELD_BITSis now unused and feature id fields don't always have 4 bits. Remove it.
Applied to arm64 (for-next/sysreg), thanks!
[1/1] arm64/sysreg: Remove unused define ARM64_FEATURE_FIELD_BITS
https://git.kernel.org/arm64/c/27abb1ee5a4e
Signature · 1 line
Catalin