Skip to content

Commit

Permalink
powerpc/mpic: constify copied structure
Browse files Browse the repository at this point in the history
The mpic_ipi_chip and mpic_irq_ht_chip structures are only copied
into other structures, so make them const.

The opportunity for this change was found using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1577864614-5543-10-git-send-email-Julia.Lawall@inria.fr
  • Loading branch information
Julia Lawall authored and Michael Ellerman committed Jan 7, 2020
1 parent 3a9d970 commit 5084ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static struct irq_chip mpic_irq_chip = {
};

#ifdef CONFIG_SMP
static struct irq_chip mpic_ipi_chip = {
static const struct irq_chip mpic_ipi_chip = {
.irq_mask = mpic_mask_ipi,
.irq_unmask = mpic_unmask_ipi,
.irq_eoi = mpic_end_ipi,
Expand All @@ -978,7 +978,7 @@ static struct irq_chip mpic_tm_chip = {
};

#ifdef CONFIG_MPIC_U3_HT_IRQS
static struct irq_chip mpic_irq_ht_chip = {
static const struct irq_chip mpic_irq_ht_chip = {
.irq_startup = mpic_startup_ht_irq,
.irq_shutdown = mpic_shutdown_ht_irq,
.irq_mask = mpic_mask_irq,
Expand Down

0 comments on commit 5084ff3

Please sign in to comment.