Skip to contentSkip to conversation

selftest-split-mlock2_-funcs-into-separate-mlock2h.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 10, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: selftest: split mlock2_ funcs into separate mlock2.h
has been removed from the -mm tree. Its filename was
selftest-split-mlock2_-funcs-into-separate-mlock2h.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Simon Guo <[email protected]>
Subject: selftest: split mlock2_ funcs into separate mlock2.h

To prepare mlock2.h whose functionality will be reused.

Cc Alexey Klimov <[email protected]>
Cc Eric B Munson <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Simon Guo <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc David Rientjes <[email protected]>

---

 tools/testing/selftests/vm/mlock2-tests.c |   21 --------------------
 tools/testing/selftests/vm/mlock2.h       |   20 +++++++++++++++++++
 2 files changed, 21 insertions(+), 20 deletions(-)
tools/testing/selftests/vm/mlock2-tests.c renamed from tools/testing/selftests/vm/mlock2-tests.c~selftest-split-mlock2_-funcs-into-separate-mlock2h +1 -20
diff -puN tools/testing/selftests/vm/mlock2-tests.c~selftest-split-mlock2_-funcs-into-separate-mlock2h tools/testing/selftests/vm/mlock2-tests.c
@@ -7,27 +7,8 @@
 #include <string.h>
 #include <sys/time.h>
 #include <sys/resource.h>
-#include <syscall.h>
-#include <errno.h>
 #include <stdbool.h>
-
-#ifndef MLOCK_ONFAULT
-#define MLOCK_ONFAULT 1
-#endif
-
-#ifndef MCL_ONFAULT
-#define MCL_ONFAULT (MCL_FUTURE << 1)
-#endif
-
-static int mlock2_(void *start, size_t len, int flags)
-{
-#ifdef __NR_mlock2
-	return syscall(__NR_mlock2, start, len, flags);
-#else
-	errno = ENOSYS;
-	return -1;
-#endif
-}
+#include "mlock2.h"
 
 struct vm_boundaries {
 	unsigned long start;
tools/testing/selftests/vm/mlock2.h new file +20 -0
diff -puN /dev/null tools/testing/selftests/vm/mlock2.h
@@ -0,0 +1,20 @@
+#include <syscall.h>
+#include <errno.h>
+
+#ifndef MLOCK_ONFAULT
+#define MLOCK_ONFAULT 1
+#endif
+
+#ifndef MCL_ONFAULT
+#define MCL_ONFAULT (MCL_FUTURE << 1)
+#endif
+
+static int mlock2_(void *start, size_t len, int flags)
+{
+#ifdef __NR_mlock2
+	return syscall(__NR_mlock2, start, len, flags);
+#else
+	errno = ENOSYS;
+	return -1;
+#endif
+}

_

Patches currently in -mm which might be from [email protected] are