]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Include linux/cpu.h for arch_cpu_idle()
authorPaul Burton <paul.burton@imgtec.com>
Wed, 23 Aug 2017 18:17:47 +0000 (11:17 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Aug 2017 13:21:54 +0000 (15:21 +0200)
commit1d9664de44c84980d8dd5eb57566330db9f4e24e
tree5b31277796a6a3965a4f209ea9da549a3fa89038
parentcdf3e96e1fb7633d4c764e8b2cb77a68cbde0ac3
MIPS: Include linux/cpu.h for arch_cpu_idle()

arch/mips/kernel/idle.c provides our implementation of the
arch_cpu_idle() function, but doesn't include the linux/cpu.h header
which declares it. This leads to a warning from sparse:

  arch/mips/kernel/idle.c:256:6: warning: symbol 'arch_cpu_idle' was not
    declared. Should it be static?

Fix this by including linux/cpu.h to get the declaration of
arch_cpu_idle().

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: trivial@kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17169/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/idle.c