Skip to contentSkip to conversation

iommu/amd: constify irq_domain_ops

PATCH New Tobias Klauser 1 participant 1 message May 24, 2017 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/amd: constify irq_domain_ops

struct irq_domain_ops is not modified, so it can be made const.

---
 drivers/iommu/amd_iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/amd_iommu.c +1 -1
index 63cacf5d6cf2..e8bd130d484a 100644
@@ -4273,7 +4273,7 @@ static void irq_remapping_deactivate(struct irq_domain *domain,
 					    irte_info->index);
 }
 
-static struct irq_domain_ops amd_ir_domain_ops = {
+static const struct irq_domain_ops amd_ir_domain_ops = {
 	.alloc = irq_remapping_alloc,
 	.free = irq_remapping_free,
 	.activate = irq_remapping_activate,
Signature · 1 line
2.13.0