]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
m68k: put definition guards around virt_to_phys and phys_to_virt
authorGreg Ungerer <gerg@linux-m68k.org>
Thu, 22 Mar 2018 00:36:41 +0000 (10:36 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 27 May 2018 23:45:25 +0000 (09:45 +1000)
The non-MMU and ColdFire IO access functions will be moving to using the
asm-generic/io.h in the near future. To make that possible we need define
guards around the m68k specific virt_to_phys() and phys_to_virt()
functions.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/include/asm/virtconvert.h

index 4aea6be7b220d962aedc1b7df6a89a472286e822..dfe43083b579ed520484c4d5e70f915a192a2a71 100644 (file)
 /*
  * Change virtual addresses to physical addresses and vv.
  */
+#define virt_to_phys virt_to_phys
 static inline unsigned long virt_to_phys(void *address)
 {
        return __pa(address);
 }
 
+#define phys_to_virt phys_to_virt
 static inline void *phys_to_virt(unsigned long address)
 {
        return __va(address);