MIPS: page.h: Provide more readable definition for PAGE_MASK.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2012 20:20:27 +0000 (22:20 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 12 Dec 2012 15:46:40 +0000 (16:46 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/page.h

index da9bd7d270d18a761f74f6168653d2eb16da7118..c48a7f0bcf3cf438126e7f11c78ee814b585efe4 100644 (file)
@@ -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)