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


Groups > linux.kernel > #1721866 > unrolled thread

[PATCH] iommu/ipmmu-vmsa: make ipmmu_gather_ops const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-28 20:20 +0200
Last post2017-08-30 15:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] iommu/ipmmu-vmsa: make ipmmu_gather_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-28 20:20 +0200
    Re: [PATCH] iommu/ipmmu-vmsa: make ipmmu_gather_ops const Joerg Roedel <joro@8bytes.org> - 2017-08-30 15:20 +0200

#1721866 — [PATCH] iommu/ipmmu-vmsa: make ipmmu_gather_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-28 20:20 +0200
Subject[PATCH] iommu/ipmmu-vmsa: make ipmmu_gather_ops const
Message-ID<ujwNH-sx-3@gated-at.bofh.it>
Make these const as they are not modified anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/iommu/ipmmu-vmsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c
index 5093d1c..0423d17 100644
--- a/drivers/iommu/ipmmu-vmsa.c
+++ b/drivers/iommu/ipmmu-vmsa.c
@@ -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,
-- 
1.9.1

[toc] | [next] | [standalone]


#1723316

FromJoerg Roedel <joro@8bytes.org>
Date2017-08-30 15:20 +0200
Message-ID<ukb4u-li-9@gated-at.bofh.it>
In reply to#1721866
On Mon, Aug 28, 2017 at 11:47:27PM +0530, Bhumika Goyal wrote:
> Make these const as they are not modified anywhere.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  drivers/iommu/ipmmu-vmsa.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web