[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190618153223.GQ8151@suse.de>
Date: Tue, 18 Jun 2019 17:32:24 +0200
From: Joerg Roedel <jroedel@...e.de>
To: Qian Cai <cai@....pw>
Cc: baolu.lu@...ux.intel.com, dwmw2@...radead.org,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] iommu/intel: silence a variable set but not used
On Mon, Jun 03, 2019 at 10:05:19AM -0400, Qian Cai wrote:
> The commit "iommu/vt-d: Probe DMA-capable ACPI name space devices"
> introduced a compilation warning due to the "iommu" variable in
> for_each_active_iommu() but never used the for each element, i.e,
> "drhd->iommu".
>
> drivers/iommu/intel-iommu.c: In function 'probe_acpi_namespace_devices':
> drivers/iommu/intel-iommu.c:4639:22: warning: variable 'iommu' set but
> not used [-Wunused-but-set-variable]
> struct intel_iommu *iommu;
>
> Silence the warning the same way as in the commit d3ed71e5cc50
> ("drivers/iommu/intel-iommu.c: fix variable 'iommu' set but not used")
>
> Signed-off-by: Qian Cai <cai@....pw>
> ---
> drivers/iommu/intel-iommu.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Powered by blists - more mailing lists