kdb: move kdb_send_sig() declaration to a better header file
authorDaniel Thompson <daniel.thompson@linaro.org>
Fri, 30 Jun 2023 20:12:06 +0000 (21:12 +0100)
committerDaniel Thompson <daniel.thompson@linaro.org>
Mon, 3 Jul 2023 08:27:12 +0000 (09:27 +0100)
commitb6464883f45ae6412de33e53587974fd86ba811e
treed56a795443f7716126d8ab620f601420bc138bc9
parent1ed0555850cdaa3113a32891d273f7a859565264
kdb: move kdb_send_sig() declaration to a better header file

kdb_send_sig() is defined in the signal code and called from kdb,
but the declaration is part of the kdb internal code.
Move the declaration to the shared header to avoid the warning:

kernel/signal.c:4789:6: error: no previous prototype for 'kdb_send_sig' [-Werror=missing-prototypes]

Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/lkml/20230517125423.930967-1-arnd@kernel.org/
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20230630201206.2396930-1-daniel.thompson@linaro.org
include/linux/kdb.h
kernel/debug/kdb/kdb_private.h