[PATCH 02/15] m68k: put definition guards around virt_to_phys and phys_to_virt

2018-04-11 Thread Greg Ungerer
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 
---
 arch/m68k/include/asm/virtconvert.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/m68k/include/asm/virtconvert.h 
b/arch/m68k/include/asm/virtconvert.h
index 4aea6be..dfe4308 100644
--- a/arch/m68k/include/asm/virtconvert.h
+++ b/arch/m68k/include/asm/virtconvert.h
@@ -16,11 +16,13 @@
 /*
  * 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);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 02/15] m68k: put definition guards around virt_to_phys and phys_to_virt

2018-04-11 Thread Geert Uytterhoeven
On Wed, Apr 11, 2018 at 2:54 PM, Greg Ungerer  wrote:
> 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 

Reviewed-by: Geert Uytterhoeven 

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html