]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
sparc: move page_to_phys to page.h
authorSam Ravnborg <sam@ravnborg.org>
Sat, 26 Apr 2014 07:57:34 +0000 (09:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2014 05:30:20 +0000 (01:30 -0400)
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>
arch/sparc/include/asm/io_32.h
arch/sparc/include/asm/io_64.h
arch/sparc/include/asm/page.h

index c1acbd891cbcce02c1ff1f54d4add3f690a3fb15..271c94a74aad3e47140dec51e102e641b063e335 100644 (file)
@@ -8,8 +8,6 @@
 #include <asm/page.h>      /* IO address mapping routines need this */
 #include <asm-generic/pci_iomap.h>
 
-#define page_to_phys(page)     (page_to_pfn(page) << PAGE_SHIFT)
-
 static inline u32 flip_dword (u32 l)
 {
        return ((l&0xff)<<24) | (((l>>8)&0xff)<<16) | (((l>>16)&0xff)<<8)| ((l>>24)&0xff);
index 09b0b88aeb2a422d5674b546768f36d413efc6c0..44845632e983b4ccd3e99350d9363d1fc0e87b79 100644 (file)
@@ -15,7 +15,6 @@
 
 /* BIO layer definitions. */
 extern unsigned long kern_base, kern_size;
-#define page_to_phys(page)     (page_to_pfn(page) << PAGE_SHIFT)
 
 static inline u8 _inb(unsigned long addr)
 {
index f21de034902596744ed071a80b0a53147b04460e..1be2fdec626896715402512ca00e8ae1f84085c3 100644 (file)
@@ -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