From: Eric W. Biederman Date: Fri, 28 Jan 2022 20:36:58 +0000 (-0600) Subject: resume_user_mode: Remove #ifdef TIF_NOTIFY_RESUME in set_notify_resume X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d3c51a0c8944e3a5bba458358b4c1f9ae2de0133;p=linux.git 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 Link: https://lkml.kernel.org/r/20220309162454.123006-11-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" --- diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index 1b7365aef8da4..946404ebe10b6 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 } /**