Commit 506c9522 authored by David S. Miller's avatar David S. Miller

Sparc64: Fix thinko in page_to_pfn

parent 6de02a9e
...@@ -115,7 +115,7 @@ typedef unsigned long iopgprot_t; ...@@ -115,7 +115,7 @@ typedef unsigned long iopgprot_t;
#define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET)) #define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
#define pfn_to_page(pfn) (mem_map + ((pfn)-(pfn_base))) #define pfn_to_page(pfn) (mem_map + ((pfn)-(pfn_base)))
#define page_to_pfn(page) ((unsigned long)((page) - ((pfn)-(pfn_base)) - mem_map)) #define page_to_pfn(page) ((unsigned long)(((page) - mem_map) + pfn_base))
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT) #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
#define pfn_valid(pfn) ((pfn) < max_mapnr) #define pfn_valid(pfn) ((pfn) < max_mapnr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment