summaryrefslogtreecommitdiff
path: root/include/asm-h8300/page.h
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2005-04-16 15:25:21 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 15:25:21 -0700
commit74ad74c1581c9a27582945ca01ffdb88fc774171 (patch)
tree334c0356525f04d888f4aed5d1d139d65a55d70b /include/asm-h8300/page.h
parentd31ddaa1722793228b364e87b6c589023b348798 (diff)
[PATCH] h8300 header update
- page.h: fix build error - unistd.h: _syscall macro cleanup. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-h8300/page.h')
-rw-r--r--include/asm-h8300/page.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-h8300/page.h b/include/asm-h8300/page.h
index 58b053f1ef3b..e3b7960d445b 100644
--- a/include/asm-h8300/page.h
+++ b/include/asm-h8300/page.h
@@ -79,7 +79,7 @@ extern unsigned long memory_end;
#ifndef __ASSEMBLY__
-#define __pa(vaddr) virt_to_phys((void *)vaddr)
+#define __pa(vaddr) virt_to_phys(vaddr)
#define __va(paddr) phys_to_virt((unsigned long)paddr)
#define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT)
@@ -89,7 +89,7 @@ extern unsigned long memory_end;
#define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
#define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
#define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
-#define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
+#define pfn_valid(page) (page < max_mapnr)
#define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn))
#define page_to_pfn(page) virt_to_pfn(page_to_virt(page))