aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/page.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2014-04-26 09:57:34 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-02 01:30:20 -0400
commitc46064b4e8fecc469ec2fa606ad0cccf4d2e49c0 (patch)
treee623d7a823215a98c52ec443f7124b6cb2241eab /arch/sparc/include/asm/page.h
parentMerge branch 'sparc32-sparse' (diff)
downloadlinux-dev-c46064b4e8fecc469ec2fa606ad0cccf4d2e49c0.tar.xz
linux-dev-c46064b4e8fecc469ec2fa606ad0cccf4d2e49c0.zip
sparc: move page_to_phys to page.h
Preparation for introducing asm-generic/io.h this move was required. In asm-generic page_to_phys is placed in page.h - so do the same here. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--arch/sparc/include/asm/page.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/page.h b/arch/sparc/include/asm/page.h
index f21de0349025..1be2fdec6268 100644
--- a/arch/sparc/include/asm/page.h
+++ b/arch/sparc/include/asm/page.h
@@ -1,5 +1,8 @@
#ifndef ___ASM_SPARC_PAGE_H
#define ___ASM_SPARC_PAGE_H
+
+#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
+
#if defined(__sparc__) && defined(__arch64__)
#include <asm/page_64.h>
#else