summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mm/mlock2.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/mm/mlock2.h')
-rw-r--r--tools/testing/selftests/mm/mlock2.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/testing/selftests/mm/mlock2.h b/tools/testing/selftests/mm/mlock2.h
index 2a6e76c226bc..8e02991b313c 100644
--- a/tools/testing/selftests/mm/mlock2.h
+++ b/tools/testing/selftests/mm/mlock2.h
@@ -4,14 +4,6 @@
#include <stdio.h>
#include <stdlib.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