Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1664724 > unrolled thread

[PATCH] iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops.

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-06-13 12:30 +0200
Last post2017-06-13 12:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-13 12:30 +0200

#1664724 — [PATCH] iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops.

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-13 12:30 +0200
Subject[PATCH] iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops.
Message-ID<tRRfc-6Mo-39@gated-at.bofh.it>
File size before:
   text	   data	    bss	    dec	    hex	filename
   6146	     56	      9	   6211	   1843	drivers/iommu/io-pgtable-arm-v7s.o

File size After adding 'const':
   text	   data	    bss	    dec	    hex	filename
   6170	     24	      9	   6203	   183b	drivers/iommu/io-pgtable-arm-v7s.o

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

diff --git a/drivers/iommu/io-pgtable-arm-v7s.c b/drivers/iommu/io-pgtable-arm-v7s.c
index 8d6ca28..f886995 100644
--- a/drivers/iommu/io-pgtable-arm-v7s.c
+++ b/drivers/iommu/io-pgtable-arm-v7s.c
@@ -749,7 +749,7 @@ static void dummy_tlb_sync(void *cookie)
 	WARN_ON(cookie != cfg_cookie);
 }
 
-static struct iommu_gather_ops dummy_tlb_ops = {
+static const struct iommu_gather_ops dummy_tlb_ops = {
 	.tlb_flush_all	= dummy_tlb_flush_all,
 	.tlb_add_flush	= dummy_tlb_add_flush,
 	.tlb_sync	= dummy_tlb_sync,
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web