selftest/vm: add helpers to detect PAGE_SIZE and PAGE_SHIFT
[linux-2.6-microblaze.git] / tools / testing / selftests / vm / gup_test.c
index fe043f6..cda837a 100644 (file)
@@ -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 */