Skip to content

Commit 06f8be1

Browse files
Zenghui Yugregkh
Zenghui Yu
authored andcommitted
arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
commit eb9a852 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a9a6715 commit 06f8be1

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
@@ -1364,7 +1364,7 @@ enum aarch64_regset {
13641364
#ifdef CONFIG_ARM64_SVE
13651365
REGSET_SVE,
13661366
#endif
1367-
#ifdef CONFIG_ARM64_SVE
1367+
#ifdef CONFIG_ARM64_SME
13681368
REGSET_SSVE,
13691369
REGSET_ZA,
13701370
#endif

0 commit comments

Comments
 (0)