linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iommu: intel-iommu: constify intel_dma_ops and intel_iommu_group
@ 2017-06-22  8:39 Arvind Yadav
  0 siblings, 0 replies; only message in thread
From: Arvind Yadav @ 2017-06-22  8:39 UTC (permalink / raw)
  To: dwmw2, jroedel, joro; +Cc: iommu, linux-kernel

File size before:
   text	   data	    bss	    dec	    hex	filename
  32765	    758	   1824	  35347	   8a13	drivers/iommu/intel-iommu.o

File size After adding 'const':
   text	   data	    bss	    dec	    hex	filename
  32989	    534	   1824	  35347	   8a13	drivers/iommu/intel-iommu.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/iommu/intel-iommu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 90ab011..9e35ad6 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3970,7 +3970,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,
@@ -4816,7 +4816,7 @@ static ssize_t intel_iommu_show_ndoms_used(struct device *dev,
 	NULL,
 };
 
-static struct attribute_group intel_iommu_group = {
+static const struct attribute_group intel_iommu_group = {
 	.name = "intel-iommu",
 	.attrs = intel_iommu_attrs,
 };
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-22  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22  8:39 [PATCH] iommu: intel-iommu: constify intel_dma_ops and intel_iommu_group Arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).