From: Alexey Dobriyan Date: Fri, 30 Jun 2023 18:34:34 +0000 (+0300) Subject: proc: skip proc-empty-vm on anything but amd64 and i386 X-Git-Tag: v6.6.7~2072^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f58a2dd8d5d01b3ece13af7915745b8e7de20afe;p=platform%2Fkernel%2Flinux-starfive.git proc: skip proc-empty-vm on anything but amd64 and i386 This test is arch specific, requires "munmap everything" primitive. Link: https://lkml.kernel.org/r/20230630183434.17434-2-adobriyan@gmail.com Signed-off-by: Alexey Dobriyan Cc: Björn Töpel Signed-off-by: Andrew Morton --- diff --git a/tools/testing/selftests/proc/proc-empty-vm.c b/tools/testing/selftests/proc/proc-empty-vm.c index 3aea36c5..dfbcb3c 100644 --- a/tools/testing/selftests/proc/proc-empty-vm.c +++ b/tools/testing/selftests/proc/proc-empty-vm.c @@ -1,3 +1,4 @@ +#if defined __amd64__ || defined __i386__ /* * Copyright (c) 2022 Alexey Dobriyan * @@ -402,3 +403,9 @@ int main(void) return rv; } +#else +int main(void) +{ + return 4; +} +#endif