RISC-V: Fix build warning for smpboot.c
authorAtish Patra <atish.patra@wdc.com>
Thu, 30 Jul 2020 00:25:35 +0000 (17:25 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 4 Aug 2020 22:02:42 +0000 (15:02 -0700)
commit635093e306a3e4543937b079dc797c2ee0bafa09
tree7028df351a4e669de9b5fd0839692265c36878a5
parent3843aca0521d039efce0240f54b37bea23ba9f16
RISC-V: Fix build warning for smpboot.c

The following warnings are reported by kbuild with W=1.

>> arch/riscv/kernel/smpboot.c:109:5: warning: no previous prototype for
'start_secondary_cpu' [-Wmissing-prototypes]
     109 | int start_secondary_cpu(int cpu, struct task_struct *tidle)
         |     ^~~~~~~~~~~~~~~~~~~
   arch/riscv/kernel/smpboot.c:146:34: warning: no previous prototype for
'smp_callin' [-Wmissing-prototypes]
     146 | asmlinkage __visible void __init smp_callin(void)
         |                                  ^~~~~~~~~~

Fix the warnings by marking the local functions static and adding the prototype
for the global function.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/smp.h
arch/riscv/kernel/smpboot.c