summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-28 14:09:32 +0300
committerJoerg Roedel <jroedel@suse.de>2017-06-28 15:17:12 +0300
commit01e1932a1748e20b69ba23d0a01db5eb3a525782 (patch)
treeb80d9fc8787821f658c1ba2dc18cfa67917fd448 /drivers/iommu/intel-iommu.c
parent58c4a95f90839624b67f67acdb8a129f4383b569 (diff)
downloadlinux-01e1932a1748e20b69ba23d0a01db5eb3a525782.tar.xz
iommu/vt-d: Constify intel_dma_ops
Most dma_map_ops structures are never modified. Constify these structures such that these can be write-protected. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r--drivers/iommu/intel-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 0ca985b418ec..1a79a4ec6f09 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3954,7 +3954,7 @@ static int intel_mapping_error(struct device *dev, dma_addr_t dma_addr)
return !dma_addr;
}
-struct dma_map_ops intel_dma_ops = {
+const struct dma_map_ops intel_dma_ops = {
.alloc = intel_alloc_coherent,
.free = intel_free_coherent,
.map_sg = intel_map_sg,