[PATCH] arm: kexec: Make function static

From: Philippe Mazenauer
Date: Wed May 22 2019 - 06:02:40 EST


Make function machine_crash_nonpanic_core() static, as it is only
referenced in this file.

../arch/arm/kernel/machine_kexec.c:82:6: warning: no previous prototype for âmachine_crash_nonpanic_coreâ [-Wmissing-prototypes]
void machine_crash_nonpanic_core(void *unused)
^~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@xxxxxxxxxx>
---
arch/arm/kernel/machine_kexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c
index 76300f3813e8..245621573802 100644
--- a/arch/arm/kernel/machine_kexec.c
+++ b/arch/arm/kernel/machine_kexec.c
@@ -79,7 +79,7 @@ void machine_kexec_cleanup(struct kimage *image)
{
}

-void machine_crash_nonpanic_core(void *unused)
+static void machine_crash_nonpanic_core(void *unused)
{
struct pt_regs regs;

--
2.17.1