iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iommu/vt-d: constify intel_dma_ops.
@ 2017-06-13 10:18 Arvind Yadav
       [not found] ` <b1e3c53042ae405bf5bf86b0c06a4ee4f74c3fc3.1497349024.git.arvind.yadav.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Arvind Yadav @ 2017-06-13 10:18 UTC (permalink / raw)
  To: dwmw2, 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
  32925	    598	   1824	  35347	   8a13	drivers/iommu/intel-iommu.o

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

diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 90ab011..de0df48 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,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-28 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13 10:18 [PATCH] iommu/vt-d: constify intel_dma_ops Arvind Yadav
     [not found] ` <b1e3c53042ae405bf5bf86b0c06a4ee4f74c3fc3.1497349024.git.arvind.yadav.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-28  8:53   ` Joerg Roedel
     [not found]     ` <20170628085318.GB14532-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-06-28 10:01       ` Arvind Yadav
     [not found]         ` <0868ed89-f9f2-1983-ea63-2e391142b44b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-28 10:20           ` Joerg Roedel

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).