Commit 71bb620d authored by Tobias Klauser's avatar Tobias Klauser Committed by Joerg Roedel

iommu/vt-d: Constify irq_domain_ops

struct irq_domain_ops is not modified, so it can be made const.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent b316d02a
...@@ -76,7 +76,7 @@ static struct hpet_scope ir_hpet[MAX_HPET_TBS]; ...@@ -76,7 +76,7 @@ static struct hpet_scope ir_hpet[MAX_HPET_TBS];
* the dmar_global_lock. * the dmar_global_lock.
*/ */
static DEFINE_RAW_SPINLOCK(irq_2_ir_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 void iommu_disable_irq_remapping(struct intel_iommu *iommu);
static int __init parse_ioapics_under_ir(void); static int __init parse_ioapics_under_ir(void);
...@@ -1396,7 +1396,7 @@ static void intel_irq_remapping_deactivate(struct irq_domain *domain, ...@@ -1396,7 +1396,7 @@ static void intel_irq_remapping_deactivate(struct irq_domain *domain,
modify_irte(&data->irq_2_iommu, &entry); 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, .alloc = intel_irq_remapping_alloc,
.free = intel_irq_remapping_free, .free = intel_irq_remapping_free,
.activate = intel_irq_remapping_activate, .activate = intel_irq_remapping_activate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment