video: rockchip: mpp: Fix compilation warning on ARM

In file included from drivers/video/rockchip/mpp/mpp_iommu.c:12:
./arch/arm/include/asm/dma-iommu.h:27:33: warning: declaration of
'struct bus_type' will not be visible outside of this function [-Wvisibility]
arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, u64 size);

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ieac6a2ab326a62fbb6831643519d55ab532ec3e9
This commit is contained in:
Tao Huang
2021-07-26 18:13:51 +08:00
parent 865b1e840f
commit c83c32522f

View File

@@ -8,9 +8,6 @@
* Ding Wei, leo.ding@rock-chips.com
*
*/
#ifdef CONFIG_ARM_DMA_USE_IOMMU
#include <asm/dma-iommu.h>
#endif
#include <linux/delay.h>
#include <linux/dma-buf.h>
#include <linux/dma-iommu.h>
@@ -21,6 +18,10 @@
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#ifdef CONFIG_ARM_DMA_USE_IOMMU
#include <asm/dma-iommu.h>
#endif
#include "mpp_debug.h"
#include "mpp_iommu.h"