[PATCH] iommu/mediatek-v1: Fix a build warning for a unused variable 'data'
Joerg Roedel
joro at 8bytes.org
Tue May 19 12:19:00 UTC 2020
On Tue, May 19, 2020 at 03:57:44PM +0800, Yong Wu wrote:
> This patch fixes a build warning:
> drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_release_device':
> >> drivers/iommu/mtk_iommu_v1.c:467:25: warning: variable 'data' set but
> >> not used [-Wunused-but-set-variable]
> 467 | struct mtk_iommu_data *data;
> | ^~~~
>
> It's reported at:
> https://lore.kernel.org/linux-iommu/202005191458.gY38V8bU%25lkp@intel.com/T/#u
>
> Reported-by: kbuild test robot <lkp at intel.com>
> Signed-off-by: Yong Wu <yong.wu at mediatek.com>
> ---
> drivers/iommu/mtk_iommu_v1.c | 2 --
> 1 file changed, 2 deletions(-)
Applied, thanks.
More information about the iommu
mailing list