* [PATCH] x86/platform/UV: make functions uv_handle_nmi and uv_nmi_setup_common static
@ 2017-12-06 17:08 Colin King
2017-12-06 17:15 ` Ingo Molnar
2017-12-06 17:38 ` Mike Travis
0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2017-12-06 17:08 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, maintainer:X86,
Mike Travis, Russ Anderson, travis @ sgi . com
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
Functions 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.
Cleans up sparse warnings:
symbol 'uv_handle_nmi' was not declared. Should it be static?
symbol 'uv_nmi_setup_common' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
arch/x86/platform/uv/uv_nmi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/platform/uv/uv_nmi.c b/arch/x86/platform/uv/uv_nmi.c
index c34bd8233f7c..5f64f30873e2 100644
--- a/arch/x86/platform/uv/uv_nmi.c
+++ b/arch/x86/platform/uv/uv_nmi.c
@@ -905,7 +905,7 @@ static inline void uv_call_kgdb_kdb(int cpu, struct pt_regs *regs, int master)
/*
* 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;
int cpu = smp_processor_id();
@@ -1013,7 +1013,7 @@ void uv_nmi_init(void)
}
/* 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 cpu;
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] x86/platform/UV: make functions uv_handle_nmi and uv_nmi_setup_common static
2017-12-06 17:08 [PATCH] x86/platform/UV: make functions uv_handle_nmi and uv_nmi_setup_common static Colin King
@ 2017-12-06 17:15 ` Ingo Molnar
2017-12-06 17:38 ` Mike Travis
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2017-12-06 17:15 UTC (permalink / raw)
To: Colin King
Cc: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, maintainer:X86,
Mike Travis, Russ Anderson, travis @ sgi . com, kernel-janitors,
linux-kernel
* Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Functions 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.
>
> Cleans up sparse warnings:
> symbol 'uv_handle_nmi' was not declared. Should it be static?
> symbol 'uv_nmi_setup_common' was not declared. Should it be static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> arch/x86/platform/uv/uv_nmi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Please combine your three pending x86 Sparse fix patches (this one, the x86/vector
one and the x86/mm one) into a single patch. They are trivial and should not be
split into 3 patches.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86/platform/UV: make functions uv_handle_nmi and uv_nmi_setup_common static
2017-12-06 17:08 [PATCH] x86/platform/UV: make functions uv_handle_nmi and uv_nmi_setup_common static Colin King
2017-12-06 17:15 ` Ingo Molnar
@ 2017-12-06 17:38 ` Mike Travis
1 sibling, 0 replies; 3+ messages in thread
From: Mike Travis @ 2017-12-06 17:38 UTC (permalink / raw)
To: Colin King, Thomas Gleixner, Ingo Molnar, H . Peter Anvin,
maintainer:X86, Russ Anderson, travis @ sgi . com
Cc: kernel-janitors, linux-kernel
I know you've already changed it but the UV changes look
fine, so ACK for that. Thanks.
On 12/6/2017 9:08 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Functions 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.
>
> Cleans up sparse warnings:
> symbol 'uv_handle_nmi' was not declared. Should it be static?
> symbol 'uv_nmi_setup_common' was not declared. Should it be static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> arch/x86/platform/uv/uv_nmi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/platform/uv/uv_nmi.c b/arch/x86/platform/uv/uv_nmi.c
> index c34bd8233f7c..5f64f30873e2 100644
> --- a/arch/x86/platform/uv/uv_nmi.c
> +++ b/arch/x86/platform/uv/uv_nmi.c
> @@ -905,7 +905,7 @@ static inline void uv_call_kgdb_kdb(int cpu, struct pt_regs *regs, int master)
> /*
> * 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;
> int cpu = smp_processor_id();
> @@ -1013,7 +1013,7 @@ void uv_nmi_init(void)
> }
>
> /* 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 cpu;
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-06 17:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 17:08 [PATCH] x86/platform/UV: make functions uv_handle_nmi and uv_nmi_setup_common static Colin King
2017-12-06 17:15 ` Ingo Molnar
2017-12-06 17:38 ` Mike Travis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox