MIPS: Fix PAGE_MASK definition
authorDan Williams <[email protected]>
Sat, 10 Oct 2015 00:56:28 +0000 (20:56 -0400)
committerRalf Baechle <[email protected]>
Thu, 12 Nov 2015 10:35:47 +0000 (11:35 +0100)
commit22b14523994588279ae9c5ccfe64073c1e5b3c00
treeff7212e4482723455475e80f440455d3fd2b32e9
parent997effa0c198ab3b7d4b62cf443d797e4e0bf5ff
MIPS: Fix PAGE_MASK definition

Make PAGE_MASK an unsigned long, like it is on x86, to avoid:

In file included from arch/mips/kernel/asm-offsets.c:14:0:
include/linux/mm.h: In function '__pfn_to_pfn_t':
include/linux/mm.h:1050:2: warning: left shift count >= width of type
  pfn_t pfn_t = { .val = pfn | (flags & PFN_FLAGS_MASK), };

...where PFN_FLAGS_MASK is:

#define PFN_FLAGS_MASK (~PAGE_MASK << (BITS_PER_LONG - PAGE_SHIFT))

Signed-off-by: Dan Williams <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/11280/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/include/asm/page.h