Skip to content

Commit

Permalink
TIF_NOTIFY_RESUME is defined on all targets now
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 24, 2012
1 parent f936991 commit 1227dd7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions include/linux/tracehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ static inline void tracehook_signal_handler(int sig, siginfo_t *info,
ptrace_notify(SIGTRAP);
}

#ifdef TIF_NOTIFY_RESUME
/**
* set_notify_resume - cause tracehook_notify_resume() to be called
* @task: task that will call tracehook_notify_resume()
Expand Down Expand Up @@ -185,6 +184,5 @@ static inline void set_notify_resume(struct task_struct *task)
static inline void tracehook_notify_resume(struct pt_regs *regs)
{
}
#endif /* TIF_NOTIFY_RESUME */

#endif /* <linux/tracehook.h> */
10 changes: 0 additions & 10 deletions security/keys/keyctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,6 @@ long keyctl_get_security(key_serial_t keyid,
*/
long keyctl_session_to_parent(void)
{
#ifdef TIF_NOTIFY_RESUME
struct task_struct *me, *parent;
const struct cred *mycred, *pcred;
struct cred *cred, *oldcred;
Expand Down Expand Up @@ -1542,15 +1541,6 @@ long keyctl_session_to_parent(void)
error_keyring:
key_ref_put(keyring_r);
return ret;

#else /* !TIF_NOTIFY_RESUME */
/*
* To be removed when TIF_NOTIFY_RESUME has been implemented on
* m68k/xtensa
*/
#warning TIF_NOTIFY_RESUME not implemented
return -EOPNOTSUPP;
#endif /* !TIF_NOTIFY_RESUME */
}

/*
Expand Down

0 comments on commit 1227dd7

Please sign in to comment.