提交 e14231cf 编写于 作者: G Geert Uytterhoeven 提交者: 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: NGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: NEric B Munson <emunson@akamai.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部