Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1202688
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/4] selftests: vm: Ensure the mlock2 syscall number can be found |
| Date | 2015-08-07 15:50 +0200 |
| Message-ID | <pUQc1-152-3@gated-at.bofh.it> (permalink) |
| References | <pUQc1-152-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Thierry Reding <treding@nvidia.com> Include the syscall.h header to ensure that the mlock2 syscall number is available. Otherwise the test program will always return ENOSYS from the mlock2() implementation. Signed-off-by: Thierry Reding <treding@nvidia.com> --- tools/testing/selftests/vm/mlock2-tests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c index 11c38e96f336..2949fd949973 100644 --- a/tools/testing/selftests/vm/mlock2-tests.c +++ b/tools/testing/selftests/vm/mlock2-tests.c @@ -6,6 +6,7 @@ #include <string.h> #include <sys/time.h> #include <sys/resource.h> +#include <syscall.h> #include <errno.h> #include <stdbool.h> -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 2/4] selftests: vm: Ensure the mlock2 syscall number can be found Thierry Reding <thierry.reding@gmail.com> - 2015-08-07 15:50 +0200
csiph-web