aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2022-01-28 14:36:58 -0600
committerEric W. Biederman <ebiederm@xmission.com>2022-03-10 16:51:50 -0600
commitd3c51a0c8944e3a5bba458358b4c1f9ae2de0133 (patch)
tree72a21150e846a94b8be8a0fc2f5841b76d24926f
parentsignal: Move set_notify_signal and clear_notify_signal into sched/signal.h (diff)
downloadlinux-dev-d3c51a0c8944e3a5bba458358b4c1f9ae2de0133.tar.xz
linux-dev-d3c51a0c8944e3a5bba458358b4c1f9ae2de0133.zip
resume_user_mode: Remove #ifdef TIF_NOTIFY_RESUME in set_notify_resume
Every architecture defines TIF_NOTIFY_RESUME so remove the unnecessary ifdef. Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/20220309162454.123006-11-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to '')
-rw-r--r--include/linux/tracehook.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h
index 1b7365aef8da..946404ebe10b 100644
--- a/include/linux/tracehook.h
+++ b/include/linux/tracehook.h
@@ -63,10 +63,8 @@ struct linux_binprm;
*/
static inline void set_notify_resume(struct task_struct *task)
{
-#ifdef TIF_NOTIFY_RESUME
if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_RESUME))
kick_process(task);
-#endif
}
/**