Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932525AbWHLOPR (ORCPT ); Sat, 12 Aug 2006 10:15:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932535AbWHLOPR (ORCPT ); Sat, 12 Aug 2006 10:15:17 -0400 Received: from amsfep17-int.chello.nl ([213.46.243.15]:54066 "EHLO amsfep14-int.chello.nl") by vger.kernel.org with ESMTP id S932525AbWHLOPN (ORCPT ); Sat, 12 Aug 2006 10:15:13 -0400 From: Peter Zijlstra To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Indan Zupancic , Peter Zijlstra , Evgeniy Polyakov , Daniel Phillips , Rik van Riel , David Miller Date: Sat, 12 Aug 2006 16:14:25 +0200 Message-Id: <20060812141425.30842.35004.sendpatchset@lappy> In-Reply-To: <20060812141415.30842.78695.sendpatchset@lappy> References: <20060812141415.30842.78695.sendpatchset@lappy> Subject: [RFC][PATCH 1/4] pfn_to_kaddr() for UML Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1015 Lines: 29 Update UML with a proper 'pfn_to_kaddr()' definition, the SROG allocator uses it. Signed-off-by: Peter Zijlstra Signed-off-by: Daniel Phillips --- include/asm-um/page.h | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/include/asm-um/page.h =================================================================== --- linux-2.6.orig/include/asm-um/page.h +++ linux-2.6/include/asm-um/page.h @@ -111,6 +111,8 @@ extern unsigned long uml_physmem; #define pfn_valid(pfn) ((pfn) < max_mapnr) #define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v))) +#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) + extern struct page *arch_validate(struct page *page, gfp_t mask, int order); #define HAVE_ARCH_VALIDATE - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/