aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-s390/page.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2006-10-04 14:02:23 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-10-04 14:02:23 -0400
commit0b2b6e1ddce4696cb7afcbb15a654fe95428a498 (patch)
treea6dd837de5ce7088ab1009d125e8bcd6cfeaa1e1 /include/asm-s390/page.h
parent7676bef9c183fd573822cac9992927ef596d584c (diff)
[S390] Remove open-coded mem_map usage.
Use page_to_phys and pfn_to_page to avoid open-coded mem_map usage. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'include/asm-s390/page.h')
-rw-r--r--include/asm-s390/page.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-s390/page.h b/include/asm-s390/page.h
index 796c400f2b79..363ea761d5ee 100644
--- a/include/asm-s390/page.h
+++ b/include/asm-s390/page.h
@@ -137,6 +137,7 @@ page_get_storage_key(unsigned long addr)
137#define __pa(x) (unsigned long)(x) 137#define __pa(x) (unsigned long)(x)
138#define __va(x) (void *)(unsigned long)(x) 138#define __va(x) (void *)(unsigned long)(x)
139#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) 139#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
140#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
140 141
141#define pfn_valid(pfn) ((pfn) < max_mapnr) 142#define pfn_valid(pfn) ((pfn) < max_mapnr)
142#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) 143#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)