diff options
Diffstat (limited to 'arch/arm64/include/asm/memory.h')
-rw-r--r-- | arch/arm64/include/asm/memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h index a62cd077457b..6486b2bfd562 100644 --- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h | |||
@@ -120,11 +120,13 @@ extern phys_addr_t memstart_addr; | |||
120 | * translation for translating DMA addresses. Use the driver | 120 | * translation for translating DMA addresses. Use the driver |
121 | * DMA support - see dma-mapping.h. | 121 | * DMA support - see dma-mapping.h. |
122 | */ | 122 | */ |
123 | #define virt_to_phys virt_to_phys | ||
123 | static inline phys_addr_t virt_to_phys(const volatile void *x) | 124 | static inline phys_addr_t virt_to_phys(const volatile void *x) |
124 | { | 125 | { |
125 | return __virt_to_phys((unsigned long)(x)); | 126 | return __virt_to_phys((unsigned long)(x)); |
126 | } | 127 | } |
127 | 128 | ||
129 | #define phys_to_virt phys_to_virt | ||
128 | static inline void *phys_to_virt(phys_addr_t x) | 130 | static inline void *phys_to_virt(phys_addr_t x) |
129 | { | 131 | { |
130 | return (void *)(__phys_to_virt(x)); | 132 | return (void *)(__phys_to_virt(x)); |