Skip to content

Commit eb9a852

Browse files
Zenghui Yuwilldeacon
authored andcommitted
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. Fixes: e12310a ("arm64/sme: Implement ptrace support for streaming mode SVE registers") Signed-off-by: Zenghui Yu <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 730a11f commit eb9a852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ enum aarch64_regset {
13571357
#ifdef CONFIG_ARM64_SVE
13581358
REGSET_SVE,
13591359
#endif
1360-
#ifdef CONFIG_ARM64_SVE
1360+
#ifdef CONFIG_ARM64_SME
13611361
REGSET_SSVE,
13621362
REGSET_ZA,
13631363
#endif

0 commit comments

Comments
 (0)