From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1F6iuh-0008To-Hc for user-mode-linux-devel@lists.sourceforge.net; Tue, 07 Feb 2006 22:34:51 -0800 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1F6iug-00046M-6X for user-mode-linux-devel@lists.sourceforge.net; Tue, 07 Feb 2006 22:34:51 -0800 Message-ID: <43E99128.6090202@jp.fujitsu.com> From: KAMEZAWA Hiroyuki MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [uml-devel] [PATCH] unify pfn_to_page take 2 [23/25] uml funcs Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 08 Feb 2006 15:35:20 +0900 To: Linux Kernel Mailing List Cc: user-mode-linux-devel@lists.sourceforge.net UML can use generic funcs. Signed-Off-By: KAMEZAWA Hiroyuki Index: test-layout-free-zone/include/asm-um/page.h =================================================================== --- test-layout-free-zone.orig/include/asm-um/page.h +++ test-layout-free-zone/include/asm-um/page.h @@ -106,9 +106,6 @@ extern unsigned long uml_physmem; #define __pa(virt) to_phys((void *) (unsigned long) (virt)) #define __va(phys) to_virt((unsigned long) (phys)) -#define page_to_pfn(page) ((page) - mem_map) -#define pfn_to_page(pfn) (mem_map + (pfn)) - #define phys_to_pfn(p) ((p) >> PAGE_SHIFT) #define pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030461AbWBHGex (ORCPT ); Wed, 8 Feb 2006 01:34:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030569AbWBHGex (ORCPT ); Wed, 8 Feb 2006 01:34:53 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:711 "EHLO fgwmail6.fujitsu.co.jp") by vger.kernel.org with ESMTP id S1030461AbWBHGew (ORCPT ); Wed, 8 Feb 2006 01:34:52 -0500 Message-ID: <43E99128.6090202@jp.fujitsu.com> Date: Wed, 08 Feb 2006 15:35:20 +0900 From: KAMEZAWA Hiroyuki User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Linux Kernel Mailing List CC: user-mode-linux-devel@lists.sourceforge.net Subject: [PATCH] unify pfn_to_page take 2 [23/25] uml funcs Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org UML can use generic funcs. Signed-Off-By: KAMEZAWA Hiroyuki Index: test-layout-free-zone/include/asm-um/page.h =================================================================== --- test-layout-free-zone.orig/include/asm-um/page.h +++ test-layout-free-zone/include/asm-um/page.h @@ -106,9 +106,6 @@ extern unsigned long uml_physmem; #define __pa(virt) to_phys((void *) (unsigned long) (virt)) #define __va(phys) to_virt((unsigned long) (phys)) -#define page_to_pfn(page) ((page) - mem_map) -#define pfn_to_page(pfn) (mem_map + (pfn)) - #define phys_to_pfn(p) ((p) >> PAGE_SHIFT) #define pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT)