Skip to content

Commit 1a56a6a

Browse files
committed
arm64: ptrace: Use ARM64_SME to guard the SME register enumerations
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122232 commit eb9a852 Author: Zenghui Yu <yuzenghui@huawei.com> Date: Wed, 14 Dec 2022 21:59:43 +0800 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 <yuzenghui@huawei.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20221214135943.379-1-yuzenghui@huawei.com Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Mark Salter <msalter@redhat.com>
1 parent abcd834 commit 1a56a6a

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
@@ -1351,7 +1351,7 @@ enum aarch64_regset {
13511351
#ifdef CONFIG_ARM64_SVE
13521352
REGSET_SVE,
13531353
#endif
1354-
#ifdef CONFIG_ARM64_SVE
1354+
#ifdef CONFIG_ARM64_SME
13551355
REGSET_SSVE,
13561356
REGSET_ZA,
13571357
#endif

0 commit comments

Comments
 (0)