Commit f1dbf8e7 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] IP27, IP35: Fix warnings.

include/asm-mips/mach-ip27/dma-coherence.h:22: warning: 'plat_map_dma_mem' defined but not used
include/asm-mips/mach-ip27/dma-coherence.h:41: warning: 'plat_unmap_dma_mem' defined but not used
include/asm-mips/mach-ip32/dma-coherence.h:30: warning: 'plat_map_dma_mem' defined but not used
include/asm-mips/mach-ip32/dma-coherence.h:63: warning: 'plat_unmap_dma_mem' defined but not used

These functions are meant to be inlined anyway.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent db98e0b4
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
struct device; struct device;
static dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr,
size_t size)
{ {
dma_addr_t pa = dev_to_baddr(dev, virt_to_phys(addr)); dma_addr_t pa = dev_to_baddr(dev, virt_to_phys(addr));
...@@ -37,7 +38,7 @@ static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) ...@@ -37,7 +38,7 @@ static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr)
return dma_addr & (0xffUL << 56); return dma_addr & (0xffUL << 56);
} }
static void plat_unmap_dma_mem(dma_addr_t dma_addr) static inline void plat_unmap_dma_mem(dma_addr_t dma_addr)
{ {
} }
......
...@@ -26,7 +26,8 @@ struct device; ...@@ -26,7 +26,8 @@ struct device;
#define RAM_OFFSET_MASK 0x3fffffffUL #define RAM_OFFSET_MASK 0x3fffffffUL
static dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr,
size_t size)
{ {
dma_addr_t pa = virt_to_phys(addr) & RAM_OFFSET_MASK; dma_addr_t pa = virt_to_phys(addr) & RAM_OFFSET_MASK;
...@@ -59,7 +60,7 @@ static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr) ...@@ -59,7 +60,7 @@ static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr)
return addr; return addr;
} }
static void plat_unmap_dma_mem(dma_addr_t dma_addr) static inline void plat_unmap_dma_mem(dma_addr_t dma_addr)
{ {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment