summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRyan Roberts <ryan.roberts@arm.com>2023-07-24 11:25:17 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 20:12:42 +0300
commite515bce98deb06b392ca79b5c342a849372be7ae (patch)
tree7a2e779bcbcf051bd638d50652681a37aa06a4de /tools
parentf6dd4e223d8798319d0e2815a468b9fb0a276446 (diff)
downloadlinux-e515bce98deb06b392ca79b5c342a849372be7ae.tar.xz
selftests/mm: enable mrelease_test for arm64
mrelease_test defaults to defining __NR_pidfd_open and __NR_process_mrelease syscall numbers to -1, if they are not defined anywhere else, and the suite would then be marked as skipped as a result. arm64 (at least the stock debian toolchain that I'm using) requires including <sys/syscall.h> to pull in the defines for these syscalls. So let's add this header. With this in place, the test is passing on arm64. Link: https://lkml.kernel.org/r/20230724082522.1202616-4-ryan.roberts@arm.com Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Florent Revest <revest@chromium.org> Cc: Jérôme Glisse <jglisse@redhat.com> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Mark Brown <broonie@kernel.org> Cc: Peter Xu <peterx@redhat.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/mm/mrelease_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/mm/mrelease_test.c b/tools/testing/selftests/mm/mrelease_test.c
index dca21042b679..d822004a374e 100644
--- a/tools/testing/selftests/mm/mrelease_test.c
+++ b/tools/testing/selftests/mm/mrelease_test.c
@@ -7,6 +7,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/syscall.h>
#include <sys/wait.h>
#include <unistd.h>
#include <asm-generic/unistd.h>