Skip to content

Commit

Permalink
resume_user_mode: Remove #ifdef TIF_NOTIFY_RESUME in set_notify_resume
Browse files Browse the repository at this point in the history
Every architecture defines TIF_NOTIFY_RESUME so remove the unnecessary
ifdef.

Reviewed-by: Kees Cook <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: "Eric W. Biederman" <[email protected]>
  • Loading branch information
ebiederm committed Mar 10, 2022
1 parent 593febb commit d3c51a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/tracehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down

0 comments on commit d3c51a0

Please sign in to comment.