From: Thierry Reding <treding@xxxxxxxxxx> 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@xxxxxxxxxx> --- 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-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html