]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] force PAGE_SIZE to be an unsigned long
authorGreg Ungerer <gerg@snapgear.com>
Sun, 6 Jul 2003 10:20:14 +0000 (03:20 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 6 Jul 2003 10:20:14 +0000 (03:20 -0700)
Force PAGE_SIZE for the m68knommu architecture to be an unsigned long.
This makes it consistent with all other architectures and cleans up
a load of compiler warnings.

include/asm-m68knommu/page.h

index 7defa6391f0b1ad8ae19b31f48c25f72797044a8..0d063a97f1c785a2d1f497621a6f1e682e8887bf 100644 (file)
@@ -6,7 +6,7 @@
 /* PAGE_SHIFT determines the page size */
 
 #define PAGE_SHIFT     (12)
-#define PAGE_SIZE      (4096)
+#define PAGE_SIZE      (1UL << PAGE_SHIFT)
 #define PAGE_MASK      (~(PAGE_SIZE-1))
 
 #ifdef __KERNEL__