aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorQian Cai <[email protected]>2019-06-03 14:05:19 +0000
committerJoerg Roedel <[email protected]>2019-06-18 15:31:46 +0000
commitaf88ec3962010e3ac96bcfe5476c9bd68b42477f (patch)
tree92e7fd06f7838d5434b95a6d5d3fc5f55d469515 /drivers/pci/controller/pci-host-common.c
parentiommu/vt-d: Remove an unused variable "length" (diff)
downloadkernel-af88ec3962010e3ac96bcfe5476c9bd68b42477f.tar.gz
kernel-af88ec3962010e3ac96bcfe5476c9bd68b42477f.zip
iommu/vt-d: Silence a variable set but not used
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 <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions