Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Ralf Baechle <ralf@linux-mips.org>

+6 -4
+3 -2
include/asm-mips/mach-ip27/dma-coherence.h
··· 18 18 19 19 struct device; 20 20 21 - static dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) 21 + static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, 22 + size_t size) 22 23 { 23 24 dma_addr_t pa = dev_to_baddr(dev, virt_to_phys(addr)); 24 25 ··· 38 37 return dma_addr & (0xffUL << 56); 39 38 } 40 39 41 - static void plat_unmap_dma_mem(dma_addr_t dma_addr) 40 + static inline void plat_unmap_dma_mem(dma_addr_t dma_addr) 42 41 { 43 42 } 44 43
+3 -2
include/asm-mips/mach-ip32/dma-coherence.h
··· 26 26 27 27 #define RAM_OFFSET_MASK 0x3fffffffUL 28 28 29 - static dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) 29 + static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, 30 + size_t size) 30 31 { 31 32 dma_addr_t pa = virt_to_phys(addr) & RAM_OFFSET_MASK; 32 33 ··· 60 59 return addr; 61 60 } 62 61 63 - static void plat_unmap_dma_mem(dma_addr_t dma_addr) 62 + static inline void plat_unmap_dma_mem(dma_addr_t dma_addr) 64 63 { 65 64 } 66 65