diff options
author | 2020-01-06 10:27:27 -0500 | |
---|---|---|
committer | 2020-01-07 17:08:58 +0100 | |
commit | 55817b340a31951d23d1692db45522560b1d20f9 (patch) | |
tree | 5855fe29818e856523e7558a24292887fcde534f /lib/test_overflow.c | |
parent | iommu/vt-d: Unlink device if failed to add to group (diff) | |
download | wireguard-linux-55817b340a31951d23d1692db45522560b1d20f9.tar.xz wireguard-linux-55817b340a31951d23d1692db45522560b1d20f9.zip |
iommu/dma: fix variable 'cookie' set but not used
The commit c18647900ec8 ("iommu/dma: Relax locking in
iommu_dma_prepare_msi()") introduced a compliation warning,
drivers/iommu/dma-iommu.c: In function 'iommu_dma_prepare_msi':
drivers/iommu/dma-iommu.c:1206:27: warning: variable 'cookie' set but
not used [-Wunused-but-set-variable]
struct iommu_dma_cookie *cookie;
^~~~~~
Fixes: c18647900ec8 ("iommu/dma: Relax locking in iommu_dma_prepare_msi()")
Signed-off-by: Qian Cai <cai@lca.pw>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions