On Tue, Jan 23, 2018 at 05:40:09PM -0800, Florian Fainelli wrote: > @@ -71,15 +83,19 @@ static inline void plat_post_dma_flush(struct device *dev) > #endif > > #ifdef CONFIG_SWIOTLB > +#ifndef phys_to_dma > static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) > { > return paddr; > } > +#endif > > +#ifndef dma_to_phys > static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) > { > return daddr; > } > #endif > +#endif /* CONFIG_SWIOTLB */ FYI these were removed in commit ea8c64ace866 ("dma-mapping: move swiotlb arch helpers to a new header"), and are only implemented by platforms which select ARCH_HAS_PHYS_TO_DMA. Cheers James
Attachment:
signature.asc
Description: Digital signature