[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1438955055-587-2-git-send-email-thierry.reding@gmail.com>
Date: Fri, 7 Aug 2015 15:44:13 +0200
From: Thierry Reding <thierry.reding@...il.com>
To: Shuah Khan <shuahkh@....samsung.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Eric B Munson <emunson@...mai.com>,
Andrea Arcangeli <aarcange@...hat.com>,
linux-api@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/4] selftests: vm: Ensure the mlock2 syscall number can be found
From: Thierry Reding <treding@...dia.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@...dia.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists