openrisc: Include cpu.h and switch_to.h for prototypes
authorStafford Horne <shorne@gmail.com>
Mon, 21 Aug 2023 04:31:18 +0000 (05:31 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 21 Aug 2023 07:15:25 +0000 (08:15 +0100)
commit136a2d894105843f19170614429bf12f1789e680
tree08dc0ea1409c2f6faa1ec36109e6d99850aa4b83
parent31c67b5fabe351644b2612c6ba75da70aeb417b1
openrisc: Include cpu.h and switch_to.h for prototypes

When compiling with W=1 enabling -Wmissing-prototypes the compiler
warns:

  arch/openrisc/kernel/process.c:100:6: error: no previous prototype for 'arch_cpu_idle' [-Werror=missing-prototypes]
  arch/openrisc/kernel/process.c:240:21: error: no previous prototype for '__switch_to' [-Werror=missing-prototypes]

Fix these by adding the approrpiate header files to process.c which
brings in the prototype definitions.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/process.c