projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c4a95
)
iommu/vt-d: Constify intel_dma_ops
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 28 Jun 2017 11:09:32 +0000
(16:39 +0530)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 28 Jun 2017 12:17:12 +0000
(14:17 +0200)
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>
drivers/iommu/intel-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 0ca985b418ec9eff08d6fd93dcebd17c83fd5a79..1a79a4ec6f0900ed8dbbb8f072ee5b997072d579 100644
(file)
--- 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,