Hi, this is unify-pfn_to_page patch take3. thank you for comments on previous version. This patch consolidates definitions of pfn_to_page/page_to_pfn which are defined by each arch to generic one. Most of archs can use it. This patch is against 2.6.16-rc3 and totally rewritten. Changelog v2 -> v3 - linux/memory_model.h is moved to asm-generic/memory_model.h - If an arch can use generic funcs, it includes asm-generic/memory_model.h. If not, it doesn't include them. (m68k, m68knommu, ia64 + virtual_mem_map) - remvoed CONFIG_ARCH_PFN_TO_PAGE - CONFIG_DONT_INLINE_PFN_TO_PAGE was renamed to CONFIG_OUT_OF_LINE_PFN_TO_PAGE This is used by x86_64+DISCONTIGMEM and sparc64. Changelog: v1->v2 - linux/memory_model.h is added. this defines pfn<->page translation. - new config options (set by arch) CONFIG_DONT_INLINE_PFN_TO_PAGE and CONFIG_ARCH_HAS_PFN_TO_PAGE are added. - SPARSEMEM's page_to_pfn is moved to linux/memory_model.h -- Kame. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] unify pfn_to_page take3 [0/23]
- From: Andrew Morton <[email protected]>
- [PATCH] unify pfn_to_page take3 [23/23] ia64 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [22/23] xtensa pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [21/23] v850 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [20/23] UML pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [19/23] sparc64 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [18/23] sparc pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [17/23] sh64 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- Re: [PATCH] unify pfn_to_page take3 [16/23] sh pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [15/23] s390 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [14/23] ppc pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [13/23] parisc pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [12/23] mips pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [11/23] m32r pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [10/23] h8300 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [9/23] frv pfn_tp_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [8/23] cris pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- Re: [PATCH] unify pfn_to_page take3 [7/23] arm26 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [6/23] arm pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [5/23] alpha pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [4/23] powerpc pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [3/23] x86_64 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [2/23] i386 pfn_to_page
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] unify pfn_to_page take3 [1/23] generic functions
- From: KAMEZAWA Hiroyuki <[email protected]>
- Re: [PATCH] unify pfn_to_page take3 [0/23]
- Prev by Date: 2.6.16-rc3-mm1
- Next by Date: LibPATA code issues / 2.6.15.4
- Previous by thread: 2.6.16-rc3-mm1
- Next by thread: [PATCH] unify pfn_to_page take3 [1/23] generic functions
- Index(es):