signal: Move set_notify_signal and clear_notify_signal into sched/signal.h
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 9 Feb 2022 17:46:54 +0000 (11:46 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 10 Mar 2022 22:51:50 +0000 (16:51 -0600)
commit593febb143d17aa2096cd123c9d62b6981eb1d97
tree09a54b26df167cb4d50a8c30d84dd1b8662959f5
parent7c5d8fa6fbb12a3f0eefe8762bfede508e147cb3
signal: Move set_notify_signal and clear_notify_signal into sched/signal.h

The header tracehook.h is no place for code to live.  The functions
set_notify_signal and clear_notify_signal are not about signals.  They
are about interruptions that act like signals.  The fundamental signal
primitives wind up calling set_notify_signal and clear_notify_signal.
Which means they need to be maintained with the signal code.

Since set_notify_signal and clear_notify_signal must be maintained
with the signal subsystem move them into sched/signal.h and claim them
as part of the signal subsystem.

Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20220309162454.123006-10-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/sched/signal.h
include/linux/tracehook.h