mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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
This commit is contained in:
@@ -196,6 +196,8 @@ int kdb_process_cpu(const struct task_struct *p)
|
||||
return cpu;
|
||||
}
|
||||
|
||||
extern void kdb_send_sig(struct task_struct *p, int sig);
|
||||
|
||||
#ifdef CONFIG_KALLSYMS
|
||||
extern const char *kdb_walk_kallsyms(loff_t *pos);
|
||||
#else /* ! CONFIG_KALLSYMS */
|
||||
|
||||
Reference in New Issue
Block a user