From: Ralf Baechle Date: Tue, 16 Oct 2012 20:20:27 +0000 (+0200) Subject: MIPS: page.h: Provide more readable definition for PAGE_MASK. X-Git-Tag: next-20121023~84^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b040f91dbc0005d6aa24624b27ff9b584822f9d;p=karo-tx-linux.git MIPS: page.h: Provide more readable definition for PAGE_MASK. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index da9bd7d270d1..c48a7f0bcf3c 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -31,7 +31,7 @@ #define PAGE_SHIFT 16 #endif #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) -#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1)) +#define PAGE_MASK (~(PAGE_SIZE - 1)) #ifdef CONFIG_HUGETLB_PAGE #define HPAGE_SHIFT (PAGE_SHIFT + PAGE_SHIFT - 3)