Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: e12310a0d30f ("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>

authored by

Zenghui Yu and committed by
Will Deacon
eb9a8526 730a11f9

+1 -1
+1 -1
arch/arm64/kernel/ptrace.c
··· 1357 1357 #ifdef CONFIG_ARM64_SVE 1358 1358 REGSET_SVE, 1359 1359 #endif 1360 - #ifdef CONFIG_ARM64_SVE 1360 + #ifdef CONFIG_ARM64_SME 1361 1361 REGSET_SSVE, 1362 1362 REGSET_ZA, 1363 1363 #endif