[tip:x86/apic] x86: Constify irqdomain ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  eb18cf55c299d2ac5c8b5421c58b6c582a044475
Gitweb:     http://git.kernel.org/tip/eb18cf55c299d2ac5c8b5421c58b6c582a044475
Author:     Thomas Gleixner <tglx@xxxxxxxxxxxxx>
AuthorDate: Tue, 5 May 2015 11:10:11 +0200
Committer:  Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitDate: Tue, 5 May 2015 11:14:48 +0200

x86: Constify irqdomain ops

Nothing changes those ops. Make the initializers readable while at it.

Reported-by: Krzysztof Kozlowski <k.kozlowski.k@xxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
 arch/x86/kernel/apic/htirq.c  | 10 +++++-----
 arch/x86/kernel/apic/vector.c |  6 +++---
 arch/x86/platform/uv/uv_irq.c | 10 +++++-----
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/arch/x86/kernel/apic/htirq.c b/arch/x86/kernel/apic/htirq.c
index 341e99b..ae50d34 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,
 	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)
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
index 1c7dd42..4264968 100644
--- a/arch/x86/kernel/apic/vector.c
+++ b/arch/x86/kernel/apic/vector.c
@@ -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)
diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c
index cdf86cd3..8570abe 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,
 	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)
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux