summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/vm/mlock2-tests.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-11-10 23:45:09 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-11 01:32:11 +0100
commite14231cfe70253cb3c32289d06407e68f4575939 (patch)
tree44206baaf61060814a9a82f9579add19489a6a68 /tools/testing/selftests/vm/mlock2-tests.c
parentselftests/mlock2: add missing #define _GNU_SOURCE (diff)
downloadlinux-e14231cfe70253cb3c32289d06407e68f4575939.tar.xz
linux-e14231cfe70253cb3c32289d06407e68f4575939.zip
selftests/mlock2: add ULL suffix to 64-bit constants
On 32-bit (e.g. m68k): mlock2-tests.c: In function 'lock_check': mlock2-tests.c:293: warning: integer constant is too large for 'long' type mlock2-tests.c:294: warning: integer constant is too large for 'long' type mlock2-tests.c:299: warning: integer constant is too large for 'long' type ... Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Eric B Munson <emunson@akamai.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/vm/mlock2-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c
index cb247219f1f7..02ca5e0177c5 100644
--- a/tools/testing/selftests/vm/mlock2-tests.c
+++ b/tools/testing/selftests/vm/mlock2-tests.c
@@ -277,8 +277,8 @@ out:
return ret;
}
-#define PRESENT_BIT 0x8000000000000000
-#define PFN_MASK 0x007FFFFFFFFFFFFF
+#define PRESENT_BIT 0x8000000000000000ULL
+#define PFN_MASK 0x007FFFFFFFFFFFFFULL
#define UNEVICTABLE_BIT (1UL << 18)
static int lock_check(char *map)