Commit d553d03f authored by Colin Ian King's avatar Colin Ian King Committed by Ingo Molnar

x86: Fix Sparse warnings about non-static functions

Functions x86_vector_debug_show(), uv_handle_nmi() and uv_nmi_setup_common()
are local to the source and do not need to be in global scope, so make them
static.

Fixes up various sparse warnings.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarMike Travis <mike.travis@hpe.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russ Anderson <russ.anderson@hpe.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Cc: travis@sgi.com
Link: http://lkml.kernel.org/r/20171206173358.24388-1-colin.king@canonical.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 5b06bbcf
...@@ -542,7 +542,7 @@ static int x86_vector_alloc_irqs(struct irq_domain *domain, unsigned int virq, ...@@ -542,7 +542,7 @@ static int x86_vector_alloc_irqs(struct irq_domain *domain, unsigned int virq,
} }
#ifdef CONFIG_GENERIC_IRQ_DEBUGFS #ifdef CONFIG_GENERIC_IRQ_DEBUGFS
void x86_vector_debug_show(struct seq_file *m, struct irq_domain *d, static void x86_vector_debug_show(struct seq_file *m, struct irq_domain *d,
struct irq_data *irqd, int ind) struct irq_data *irqd, int ind)
{ {
unsigned int cpu, vector, prev_cpu, prev_vector; unsigned int cpu, vector, prev_cpu, prev_vector;
......
...@@ -905,7 +905,7 @@ static inline void uv_call_kgdb_kdb(int cpu, struct pt_regs *regs, int master) ...@@ -905,7 +905,7 @@ static inline void uv_call_kgdb_kdb(int cpu, struct pt_regs *regs, int master)
/* /*
* UV NMI handler * UV NMI handler
*/ */
int uv_handle_nmi(unsigned int reason, struct pt_regs *regs) static int uv_handle_nmi(unsigned int reason, struct pt_regs *regs)
{ {
struct uv_hub_nmi_s *hub_nmi = uv_hub_nmi; struct uv_hub_nmi_s *hub_nmi = uv_hub_nmi;
int cpu = smp_processor_id(); int cpu = smp_processor_id();
...@@ -1013,7 +1013,7 @@ void uv_nmi_init(void) ...@@ -1013,7 +1013,7 @@ void uv_nmi_init(void)
} }
/* Setup HUB NMI info */ /* Setup HUB NMI info */
void __init uv_nmi_setup_common(bool hubbed) static void __init uv_nmi_setup_common(bool hubbed)
{ {
int size = sizeof(void *) * (1 << NODES_SHIFT); int size = sizeof(void *) * (1 << NODES_SHIFT);
int cpu; int cpu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment