Browse Source

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>
Geert Uytterhoeven 9 years ago
parent
commit
e14231cfe7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/testing/selftests/vm/mlock2-tests.c

+ 2 - 2
tools/testing/selftests/vm/mlock2-tests.c

@@ -277,8 +277,8 @@ out:
 	return ret;
 	return ret;
 }
 }
 
 
-#define PRESENT_BIT     0x8000000000000000
-#define PFN_MASK        0x007FFFFFFFFFFFFF
+#define PRESENT_BIT     0x8000000000000000ULL
+#define PFN_MASK        0x007FFFFFFFFFFFFFULL
 #define UNEVICTABLE_BIT (1UL << 18)
 #define UNEVICTABLE_BIT (1UL << 18)
 
 
 static int lock_check(char *map)
 static int lock_check(char *map)