commit | 20ab7218d2507b2dbec9c053c2f1b96054e266b6 | [log] [tgz] |
---|---|---|
author | Christian Brauner <[email protected]> | Tue Aug 21 22:00:54 2018 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Aug 22 10:52:51 2018 -0700 |
tree | 16b6e6284448e46c3e1d52e0a424626c4beda90a | |
parent | f99e9d8c5c7f5539e6d97fd04a4ad213e52daac0 [diff] [blame] |
signal: make get_signal() return bool make get_signal() already behaves like a boolean function. Let's actually declare it as such too. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Al Viro <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Morris <[email protected]> Cc: Kees Cook <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephen Smalley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/include/linux/signal.h b/include/linux/signal.h index fa23cae..e3d9e06 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h
@@ -265,7 +265,7 @@ extern void set_current_blocked(sigset_t *); extern void __set_current_blocked(const sigset_t *); extern int show_unhandled_signals; -extern int get_signal(struct ksignal *ksig); +extern bool get_signal(struct ksignal *ksig); extern void signal_setup_done(int failed, struct ksignal *ksig, int stepping); extern void exit_signals(struct task_struct *tsk); extern void kernel_sigaction(int, __sighandler_t);