summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/asm-ppc/page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc/page.h b/include/asm-ppc/page.h
index 4834d006adb6..e0429c2b5bc7 100644
--- a/include/asm-ppc/page.h
+++ b/include/asm-ppc/page.h
@@ -62,7 +62,7 @@ typedef unsigned long pgprot_t;
/* align addr on a size boundry - adjust address up if needed -- Cort */
-#define _ALIGN(addr,size) (((addr)+size-1)&(~(size-1)))
+#define _ALIGN(addr,size) (((addr)+(size)-1)&(~((size)-1)))
/* to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)