* [PATCH] unify pfn_to_page take 2 [19/25] sh funcs
@ 2006-02-08 6:25 ` KAMEZAWA Hiroyuki
2006-02-08 11:39 ` Paul Mundt
0 siblings, 1 reply; 3+ messages in thread
From: KAMEZAWA Hiroyuki @ 2006-02-08 6:25 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: linuxsh-dev
SH can use generic funcs.
Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Index: test-layout-free-zone/include/asm-sh/page.h
===================================================================
--- test-layout-free-zone.orig/include/asm-sh/page.h
+++ test-layout-free-zone/include/asm-sh/page.h
@@ -105,9 +105,7 @@ typedef struct { unsigned long pgprot; }
/* PFN start number, because of __MEMORY_START */
#define PFN_START (__MEMORY_START >> PAGE_SHIFT)
-
-#define pfn_to_page(pfn) (mem_map + (pfn) - PFN_START)
-#define page_to_pfn(page) ((unsigned long)((page) - mem_map) + PFN_START)
+#define ARCH_PFN_OFFSET (PFN_START)
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
#define pfn_valid(pfn) (((pfn) - PFN_START) < max_mapnr)
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] unify pfn_to_page take 2 [20/25] sh64 funcs
@ 2006-02-08 6:27 KAMEZAWA Hiroyuki
2006-02-08 6:25 ` [PATCH] unify pfn_to_page take 2 [19/25] sh funcs KAMEZAWA Hiroyuki
0 siblings, 1 reply; 3+ messages in thread
From: KAMEZAWA Hiroyuki @ 2006-02-08 6:27 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: linuxsh-shmedia-dev
sh64 can use generic funcs.
Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Index: test-layout-free-zone/include/asm-sh64/page.h
===================================================================
--- test-layout-free-zone.orig/include/asm-sh64/page.h
+++ test-layout-free-zone/include/asm-sh64/page.h
@@ -105,9 +105,7 @@ typedef struct { unsigned long pgprot; }
/* PFN start number, because of __MEMORY_START */
#define PFN_START (__MEMORY_START >> PAGE_SHIFT)
-
-#define pfn_to_page(pfn) (mem_map + (pfn) - PFN_START)
-#define page_to_pfn(page) ((unsigned long)((page) - mem_map) + PFN_START)
+#define ARCH_PFN_OFFSET (PFN_START)
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
#define pfn_valid(pfn) (((pfn) - PFN_START) < max_mapnr)
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] unify pfn_to_page take 2 [19/25] sh funcs
2006-02-08 6:25 ` [PATCH] unify pfn_to_page take 2 [19/25] sh funcs KAMEZAWA Hiroyuki
@ 2006-02-08 11:39 ` Paul Mundt
0 siblings, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2006-02-08 11:39 UTC (permalink / raw)
To: KAMEZAWA Hiroyuki
Cc: Linux Kernel Mailing List, linuxsh-dev, linuxsh-shmedia-dev
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
On Wed, Feb 08, 2006 at 03:25:26PM +0900, KAMEZAWA Hiroyuki wrote:
> SH can use generic funcs.
>
> Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>
On Wed, Feb 08, 2006 at 03:27:04PM +0900, KAMEZAWA Hiroyuki wrote:
> sh64 can use generic funcs.
>
> Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>
Both look fine to me, thanks.
Acked-by: Paul Mundt <lethal@linux-sh.org>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-08 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08 6:27 [PATCH] unify pfn_to_page take 2 [20/25] sh64 funcs KAMEZAWA Hiroyuki
2006-02-08 6:25 ` [PATCH] unify pfn_to_page take 2 [19/25] sh funcs KAMEZAWA Hiroyuki
2006-02-08 11:39 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox