Skip to content

Commit 2228f19

Browse files
legoatermpe
authored andcommitted
powerpc/xive: Make debug routines static
This fixes a compile error with W=1. CC arch/powerpc/sysdev/xive/common.o ../arch/powerpc/sysdev/xive/common.c:1568:6: error: no previous prototype for ‘xive_debug_show_cpu’ [-Werror=missing-prototypes] void xive_debug_show_cpu(struct seq_file *m, int cpu) ^~~~~~~~~~~~~~~~~~~ ../arch/powerpc/sysdev/xive/common.c:1602:6: error: no previous prototype for ‘xive_debug_show_irq’ [-Werror=missing-prototypes] void xive_debug_show_irq(struct seq_file *m, u32 hw_irq, struct irq_data *d) ^~~~~~~~~~~~~~~~~~~ Fixes: 930914b ("powerpc/xive: Add a debugfs file to dump internal XIVE state") Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200914211007.2285999-5-clg@kaod.org
1 parent 5ab187e commit 2228f19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/powerpc/sysdev/xive/common.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ static int __init xive_off(char *arg)
15651565
}
15661566
__setup("xive=off", xive_off);
15671567

1568-
void xive_debug_show_cpu(struct seq_file *m, int cpu)
1568+
static void xive_debug_show_cpu(struct seq_file *m, int cpu)
15691569
{
15701570
struct xive_cpu *xc = per_cpu(xive_cpu, cpu);
15711571

@@ -1599,7 +1599,7 @@ void xive_debug_show_cpu(struct seq_file *m, int cpu)
15991599
seq_puts(m, "\n");
16001600
}
16011601

1602-
void xive_debug_show_irq(struct seq_file *m, u32 hw_irq, struct irq_data *d)
1602+
static void xive_debug_show_irq(struct seq_file *m, u32 hw_irq, struct irq_data *d)
16031603
{
16041604
struct irq_chip *chip = irq_data_get_irq_chip(d);
16051605
int rc;

0 commit comments

Comments
 (0)