dma-mapping: move dma-debug.h to kernel/dma/
Most of dma-debug.h is not required by anything outside of kernel/dma. Move the four declarations needed by dma-mappin.h or dma-ops providers into dma-mapping.h and dma-map-ops.h, and move the remainder of the file to kernel/dma/debug.h. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -220,6 +220,18 @@ static inline void arch_teardown_dma_ops(struct device *dev)
|
||||
}
|
||||
#endif /* CONFIG_ARCH_HAS_TEARDOWN_DMA_OPS */
|
||||
|
||||
#ifdef CONFIG_DMA_API_DEBUG
|
||||
void dma_debug_add_bus(struct bus_type *bus);
|
||||
void debug_dma_dump_mappings(struct device *dev);
|
||||
#else
|
||||
static inline void dma_debug_add_bus(struct bus_type *bus)
|
||||
{
|
||||
}
|
||||
static inline void debug_dma_dump_mappings(struct device *dev)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_DMA_API_DEBUG */
|
||||
|
||||
extern const struct dma_map_ops dma_dummy_ops;
|
||||
|
||||
#endif /* _LINUX_DMA_MAP_OPS_H */
|
||||
|
||||
Reference in New Issue
Block a user