Commit e14231cf authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarEric B Munson <emunson@akamai.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 60997feb
......@@ -277,8 +277,8 @@ static bool is_vma_lock_on_fault(unsigned long addr)
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment