x86: Constify irqdomain ops
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 May 2015 09:10:11 +0000 (11:10 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 5 May 2015 09:14:48 +0000 (11:14 +0200)
Nothing changes those ops. Make the initializers readable while at it.

Reported-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/htirq.c
arch/x86/kernel/apic/vector.c
arch/x86/platform/uv/uv_irq.c

index 341e99be42b8636eb66a6beb7397116da953587a..ae50d3454d7874e98f1e71e3402fb786dacb67c7 100644 (file)
@@ -143,11 +143,11 @@ static void htirq_domain_deactivate(struct irq_domain *domain,
        write_ht_irq_msg(irq_data->irq, &msg);
 }
 
-static struct irq_domain_ops htirq_domain_ops = {
-       .alloc = htirq_domain_alloc,
-       .free = htirq_domain_free,
-       .activate = htirq_domain_activate,
-       .deactivate = htirq_domain_deactivate,
+static const struct irq_domain_ops htirq_domain_ops = {
+       .alloc          = htirq_domain_alloc,
+       .free           = htirq_domain_free,
+       .activate       = htirq_domain_activate,
+       .deactivate     = htirq_domain_deactivate,
 };
 
 void arch_init_htirq_domain(struct irq_domain *parent)
index 1c7dd42b98c1fbcea693f5e3b2a0235cf73e32a9..426496862be0765c7af89673fa37d8c3f7d0983a 100644 (file)
@@ -330,9 +330,9 @@ error:
        return err;
 }
 
-static struct irq_domain_ops x86_vector_domain_ops = {
-       .alloc = x86_vector_alloc_irqs,
-       .free = x86_vector_free_irqs,
+static const struct irq_domain_ops x86_vector_domain_ops = {
+       .alloc  = x86_vector_alloc_irqs,
+       .free   = x86_vector_free_irqs,
 };
 
 int __init arch_probe_nr_irqs(void)
index cdf86cd3fd976d7fb615402d58c68a42d6ea8ce0..8570abe68be1feb0b12bb1828a7126d07b94307d 100644 (file)
@@ -149,11 +149,11 @@ static void uv_domain_deactivate(struct irq_domain *domain,
        uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data);
 }
 
-static struct irq_domain_ops uv_domain_ops = {
-       .alloc = uv_domain_alloc,
-       .free = uv_domain_free,
-       .activate = uv_domain_activate,
-       .deactivate = uv_domain_deactivate,
+static const struct irq_domain_ops uv_domain_ops = {
+       .alloc          = uv_domain_alloc,
+       .free           = uv_domain_free,
+       .activate       = uv_domain_activate,
+       .deactivate     = uv_domain_deactivate,
 };
 
 static struct irq_domain *uv_get_irq_domain(void)