]> err.no Git - linux-2.6/commitdiff
[IA64] Recent SPARSEMEM and DISCONTIG changes break some builds
authorBob Picco <bob.picco@hp.com>
Mon, 31 Oct 2005 18:25:25 +0000 (13:25 -0500)
committerTony Luck <tony.luck@intel.com>
Mon, 31 Oct 2005 19:33:53 +0000 (11:33 -0800)
My only objection to pfn_to_kaddr, which was introduced for HotPlug memory,
is that all arches have an identical implementation. I haven't had a chance
to pursue why yet.  There is probably some arch issue I'm unaware of.

Signed-off-by: Bob Picco <bob.picco@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/asm-ia64/page.h

index ef436b9d06ad4580923f65c78c9ceac3a14e8942..9d41548b7fef43d1f98abbbb1a5dfaa371c9a031 100644 (file)
@@ -120,6 +120,7 @@ extern unsigned long max_low_pfn;
 
 #define page_to_phys(page)     (page_to_pfn(page) << PAGE_SHIFT)
 #define virt_to_page(kaddr)    pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
+#define pfn_to_kaddr(pfn)      __va((pfn) << PAGE_SHIFT)
 
 typedef union ia64_va {
        struct {