Skip to content

Commit d3c51a0

Browse files
committed
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>
1 parent 593febb commit d3c51a0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/tracehook.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ struct linux_binprm;
6363
*/
6464
static inline void set_notify_resume(struct task_struct *task)
6565
{
66-
#ifdef TIF_NOTIFY_RESUME
6766
if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_RESUME))
6867
kick_process(task);
69-
#endif
7068
}
7169

7270
/**

0 commit comments

Comments
 (0)