Skip to content
Snippets Groups Projects
Commit 01e1932a authored by Arvind Yadav's avatar Arvind Yadav Committed by Joerg Roedel
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 58c4a95f
Branches
Tags
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment