summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/arm64/signal/testcases
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2024-08-22 16:11:11 +0100
committerWill Deacon <will@kernel.org>2024-09-04 12:54:06 +0100
commitd3c6e5b1093ac68ef66e3c78564e8fb958180bac (patch)
treeea7d87b4894024544fc522d4603712a4cc425294 /tools/testing/selftests/arm64/signal/testcases
parentfabf056278b4ccddea4a944a1635fee44033b71f (diff)
downloadlwn-d3c6e5b1093ac68ef66e3c78564e8fb958180bac.tar.gz
lwn-d3c6e5b1093ac68ef66e3c78564e8fb958180bac.zip
kselftest/arm64: parse POE_MAGIC in a signal frame
Teach the signal frame parsing about the new POE frame, avoids warning when it is generated. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240822151113.1479789-29-joey.gouly@arm.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/testing/selftests/arm64/signal/testcases')
-rw-r--r--tools/testing/selftests/arm64/signal/testcases/testcases.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/arm64/signal/testcases/testcases.c b/tools/testing/selftests/arm64/signal/testcases/testcases.c
index e4331440fed0..e6daa94fcd2e 100644
--- a/tools/testing/selftests/arm64/signal/testcases/testcases.c
+++ b/tools/testing/selftests/arm64/signal/testcases/testcases.c
@@ -161,6 +161,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err)
if (head->size != sizeof(struct esr_context))
*err = "Bad size for esr_context";
break;
+ case POE_MAGIC:
+ if (head->size != sizeof(struct poe_context))
+ *err = "Bad size for poe_context";
+ break;
case TPIDR2_MAGIC:
if (head->size != sizeof(struct tpidr2_context))
*err = "Bad size for tpidr2_context";