mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
5db5d93089
commit
a1fd09e8e6
13 changed files with 34 additions and 52 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue