]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iommu/vt-d: Constify irq_domain_ops
authorTobias Klauser <tklauser@distanz.ch>
Wed, 24 May 2017 14:31:23 +0000 (16:31 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 30 May 2017 09:41:32 +0000 (11:41 +0200)
struct irq_domain_ops is not modified, so it can be made const.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel_irq_remapping.c

index a190cbd76ef7113f850b3c09d8b513367d7eb496..f7ef4a5d478548025755272bccbdb0cd6701562a 100644 (file)
@@ -76,7 +76,7 @@ static struct hpet_scope ir_hpet[MAX_HPET_TBS];
  * the dmar_global_lock.
  */
 static DEFINE_RAW_SPINLOCK(irq_2_ir_lock);
-static struct irq_domain_ops intel_ir_domain_ops;
+static const struct irq_domain_ops intel_ir_domain_ops;
 
 static void iommu_disable_irq_remapping(struct intel_iommu *iommu);
 static int __init parse_ioapics_under_ir(void);
@@ -1396,7 +1396,7 @@ static void intel_irq_remapping_deactivate(struct irq_domain *domain,
        modify_irte(&data->irq_2_iommu, &entry);
 }
 
-static struct irq_domain_ops intel_ir_domain_ops = {
+static const struct irq_domain_ops intel_ir_domain_ops = {
        .alloc = intel_irq_remapping_alloc,
        .free = intel_irq_remapping_free,
        .activate = intel_irq_remapping_activate,