]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 13 Jun 2017 10:28:30 +0000 (15:58 +0530)
committerWill Deacon <will.deacon@arm.com>
Fri, 23 Jun 2017 16:57:57 +0000 (17:57 +0100)
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>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/io-pgtable-arm-v7s.c

index 8d6ca28c3e1f14a6c364aae89640ee6535f8f0d6..f8869951610c06e41aefe43093ce9889c6d5ac9e 100644 (file)
@@ -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,