Skip to contentSkip to conversation

iommu/ipmmu-vmsa: make ipmmu_gather_ops const

PATCH Applied Bhumika Goyal 2 participants 2 messages Aug 28, 2017 – Aug 30, 2017 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/ipmmu-vmsa: make ipmmu_gather_ops const

Make these const as they are not modified anywhere.

---
 drivers/iommu/ipmmu-vmsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/ipmmu-vmsa.c +1 -1
index 5093d1c..0423d17 100644
@@ -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,
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Bhumika Goyal

Make these const as they are not modified anywhere.

---
 drivers/iommu/ipmmu-vmsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.