]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
iommu/ipmmu-vmsa: Make ipmmu_gather_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 28 Aug 2017 18:17:27 +0000 (23:47 +0530)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Aug 2017 13:10:53 +0000 (15:10 +0200)
Make these const as they are not modified anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c

index 1711fd306d33cb05567d9568f022a1104b3cb1dd..195d6e93ac7185aa53ee075521faf0de56ec53bf 100644 (file)
@@ -295,7 +295,7 @@ static void ipmmu_tlb_add_flush(unsigned long iova, size_t size,
        /* The hardware doesn't support selective TLB flush. */
 }
 
-static struct iommu_gather_ops ipmmu_gather_ops = {
+static const struct iommu_gather_ops ipmmu_gather_ops = {
        .tlb_flush_all = ipmmu_tlb_flush_all,
        .tlb_add_flush = ipmmu_tlb_add_flush,
        .tlb_sync = ipmmu_tlb_flush_all,