OSDN Git Service

um: Give start_idle_thread() a return code
authorRichard Weinberger <richard@nod.at>
Fri, 15 Jun 2018 14:42:56 +0000 (16:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:08:00 +0000 (16:08 +0100)
commit6d4c882c4ca1a6457630f62dfe5700365eddc70c
tree23fac1b6e18205c86fc127ea820d8c98d6eeb0c2
parent5f427ca479c33907abceb3e767cf1a76a5f5bffd
um: Give start_idle_thread() a return code

[ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ]

Fixes:
arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of
non-void function [-Wreturn-type]

longjmp() never returns but gcc still warns that the end of the function
can be reached.
Add a return code and debug aid to detect this impossible case.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/os-Linux/skas/process.c