diff options
Diffstat (limited to 'include/asm-h8300/page.h')
-rw-r--r-- | include/asm-h8300/page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-h8300/page.h b/include/asm-h8300/page.h index 58b053f1ef3..e3b7960d445 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)) |