projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
selftest/vm: add helpers to detect PAGE_SIZE and PAGE_SHIFT
[linux-2.6-microblaze.git]
/
tools
/
testing
/
selftests
/
vm
/
gup_test.c
diff --git
a/tools/testing/selftests/vm/gup_test.c
b/tools/testing/selftests/vm/gup_test.c
index
fe043f6
..
cda837a
100644
(file)
--- a/
tools/testing/selftests/vm/gup_test.c
+++ b/
tools/testing/selftests/vm/gup_test.c
@@
-10,8
+10,9
@@
#include <assert.h>
#include "../../../../mm/gup_test.h"
+#include "util.h"
+
#define MB (1UL << 20)
-#define PAGE_SIZE sysconf(_SC_PAGESIZE)
/* Just the flags we need, copied from mm.h: */
#define FOLL_WRITE 0x01 /* check pte is writable */