From c83c32522f7a090f88fd2fa221b690d5c8c69766 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 26 Jul 2021 18:13:51 +0800 Subject: [PATCH] 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 Change-Id: Ieac6a2ab326a62fbb6831643519d55ab532ec3e9 --- drivers/video/rockchip/mpp/mpp_iommu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/video/rockchip/mpp/mpp_iommu.c b/drivers/video/rockchip/mpp/mpp_iommu.c index 37f6293da871..d123f42da7e6 100644 --- a/drivers/video/rockchip/mpp/mpp_iommu.c +++ b/drivers/video/rockchip/mpp/mpp_iommu.c @@ -8,9 +8,6 @@ * Ding Wei, leo.ding@rock-chips.com * */ -#ifdef CONFIG_ARM_DMA_USE_IOMMU -#include -#endif #include #include #include @@ -21,6 +18,10 @@ #include #include +#ifdef CONFIG_ARM_DMA_USE_IOMMU +#include +#endif + #include "mpp_debug.h" #include "mpp_iommu.h"