aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-05-05 05:10:11 -0400
committerThomas Gleixner <tglx@linutronix.de>2015-05-05 05:14:48 -0400
commiteb18cf55c299d2ac5c8b5421c58b6c582a044475 (patch)
treeaa83e35e19d88ceb1df740413209a449a1baac35
parent9d4c0313f24a05e5252e7106636bf3c5b6318f5d (diff)
x86: Constify irqdomain ops
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>
-rw-r--r--arch/x86/kernel/apic/htirq.c10
-rw-r--r--arch/x86/kernel/apic/vector.c6
-rw-r--r--arch/x86/platform/uv/uv_irq.c10
3 files changed, 13 insertions, 13 deletions
diff --git a/arch/x86/kernel/apic/htirq.c b/arch/x86/kernel/apic/htirq.c
index 341e99be42b8..ae50d3454d78 100644
--- a/arch/x86/kernel/apic/htirq.c
+++ b/arch/x86/kernel/apic/htirq.c
@@ -143,11 +143,11 @@ static void htirq_domain_deactivate(struct irq_domain *domain,
143 write_ht_irq_msg(irq_data->irq, &msg); 143 write_ht_irq_msg(irq_data->irq, &msg);
144} 144}
145 145
146static struct irq_domain_ops htirq_domain_ops = { 146static const struct irq_domain_ops htirq_domain_ops = {
147 .alloc = htirq_domain_alloc, 147 .alloc = htirq_domain_alloc,
148 .free = htirq_domain_free, 148 .free = htirq_domain_free,
149 .activate = htirq_domain_activate, 149 .activate = htirq_domain_activate,
150 .deactivate = htirq_domain_deactivate, 150 .deactivate = htirq_domain_deactivate,
151}; 151};
152 152
153void arch_init_htirq_domain(struct irq_domain *parent) 153void arch_init_htirq_domain(struct irq_domain *parent)
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
index 1c7dd42b98c1..426496862be0 100644
--- a/arch/x86/kernel/apic/vector.c
+++ b/arch/x86/kernel/apic/vector.c
@@ -330,9 +330,9 @@ error:
330 return err; 330 return err;
331} 331}
332 332
333static struct irq_domain_ops x86_vector_domain_ops = { 333static const struct irq_domain_ops x86_vector_domain_ops = {
334 .alloc = x86_vector_alloc_irqs, 334 .alloc = x86_vector_alloc_irqs,
335 .free = x86_vector_free_irqs, 335 .free = x86_vector_free_irqs,
336}; 336};
337 337
338int __init arch_probe_nr_irqs(void) 338int __init arch_probe_nr_irqs(void)
diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c
index cdf86cd3fd97..8570abe68be1 100644
--- a/arch/x86/platform/uv/uv_irq.c
+++ b/arch/x86/platform/uv/uv_irq.c
@@ -149,11 +149,11 @@ static void uv_domain_deactivate(struct irq_domain *domain,
149 uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data); 149 uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data);
150} 150}
151 151
152static struct irq_domain_ops uv_domain_ops = { 152static const struct irq_domain_ops uv_domain_ops = {
153 .alloc = uv_domain_alloc, 153 .alloc = uv_domain_alloc,
154 .free = uv_domain_free, 154 .free = uv_domain_free,
155 .activate = uv_domain_activate, 155 .activate = uv_domain_activate,
156 .deactivate = uv_domain_deactivate, 156 .deactivate = uv_domain_deactivate,
157}; 157};
158 158
159static struct irq_domain *uv_get_irq_domain(void) 159static struct irq_domain *uv_get_irq_domain(void)