arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
Subsystems (2)
PATCH 1/1 arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
We currently guard REGSET_{SSVE, ZA} using ARM64_SVE for no good reason. Both enumerations would be pointless without ARM64_SME and create two empty entries in aarch64_regsets[] which would then become part of a process's native regset view (they should be ignored though).
Switch to use ARM64_SME instead.
--- arch/arm64/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/ptrace.c +1 -1
@@ -1357,7 +1357,7 @@ enum aarch64_regset {#ifdef CONFIG_ARM64_SVE REGSET_SVE,#endif -#ifdef CONFIG_ARM64_SVE +#ifdef CONFIG_ARM64_SME REGSET_SSVE, REGSET_ZA,#endif
Signature · 1 line
2.33.0
Quoted 6 lines · Zenghui Yu
We currently guard REGSET_{SSVE, ZA} using
ARM64_SVEfor no good reason. Both enumerations would be pointless withoutARM64_SMEand create two empty entries in aarch64_regsets[] which would then become part of a process's native regset view (they should be ignored though).Switch to use
ARM64_SMEinstead.
Quoted 8 lines · Zenghui Yu
We currently guard REGSET_{SSVE, ZA} using
ARM64_SVEfor no good reason. Both enumerations would be pointless withoutARM64_SMEand create two empty entries in aarch64_regsets[] which would then become part of a process's native regset view (they should be ignored though).Switch to use
ARM64_SMEinstead.[...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
https://git.kernel.org/arm64/c/eb9a85261e29
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev