Commit 800dc4f4 authored by Dan Williams's avatar Dan Williams Committed by Ralf Baechle

Revert "MIPS: Fix PAGE_MASK definition"

This reverts commit 22b14523.

It was originally sent in an earlier revision of the pfn_t patchset.
Besides being broken, the warning is also fixed by PFN_FLAGS_MASK
casting the PAGE_MASK to an unsigned long.
Reported-by: default avatarManuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Cc: linux-kernel@vger.kernel.org
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12182/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8083013f
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#define PAGE_SHIFT 16 #define PAGE_SHIFT 16
#endif #endif
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE - 1)) #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
/* /*
* This is used for calculating the real page sizes * This is used for calculating the real page sizes
......
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