From f8f3304856cdf67414ba2c1a3d2adf78974a3d6a Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Thu, 22 Mar 2018 10:36:41 +1000 Subject: m68k: put definition guards around virt_to_phys and phys_to_virt 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 Reviewed-by: Angelo Dureghello Tested-by: Angelo Dureghello --- arch/m68k/include/asm/virtconvert.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/m68k/include/asm/virtconvert.h') diff --git a/arch/m68k/include/asm/virtconvert.h b/arch/m68k/include/asm/virtconvert.h index 4aea6be7b220..dfe43083b579 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); -- cgit v1.2.3-59-g8ed1b