Re: [PATCH] iommu/sun50i: Fix set-but-not-used variable warning

From: Maxime Ripard
Date: Mon Sep 07 2020 - 11:17:53 EST


On Fri, Sep 04, 2020 at 01:39:06PM +0200, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@xxxxxxx>
>
> Fix the following warning the the SUN50I driver:
>
> drivers/iommu/sun50i-iommu.c: In function 'sun50i_iommu_irq':
> drivers/iommu/sun50i-iommu.c:890:14: warning: variable 'iova' set but not used [-Wunused-but-set-variable]
> 890 | phys_addr_t iova;
> | ^~~~
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>

Acked-by: Maxime Ripard <mripard@xxxxxxxxxx>

Thanks!
Maxime