]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/mm.h
PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures
[linux-2.6-omap-h63xx.git] / include / linux / mm.h
index df322fb4df31f1a7cd507ea0f2c4993a59a23da3..d87a5a5fe87ddc48d8a205a7f3b17627ed0874f7 100644 (file)
@@ -41,6 +41,9 @@ extern unsigned long mmap_min_addr;
 
 #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
 
+/* to align the pointer to the (next) page boundary */
+#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
+
 /*
  * Linux kernel virtual memory manager primitives.
  * The idea being to have a "virtual" mm in the same way