diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-24 02:44:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-23 22:09:19 -0400 |
commit | 1227dd773d8d4e3983b4b751f9ffa0f41402fb7c (patch) | |
tree | 8fb48e099710fa179c6ca7dd4c5298513dcd5659 | |
parent | f9369910a6225b8d4892c3f20ae740a711cd5ace (diff) |
TIF_NOTIFY_RESUME is defined on all targets now
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | include/linux/tracehook.h | 2 | ||||
-rw-r--r-- | security/keys/keyctl.c | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index 51bd91d911c3..8a2a3fc9bd05 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h | |||
@@ -153,7 +153,6 @@ static inline void tracehook_signal_handler(int sig, siginfo_t *info, | |||
153 | ptrace_notify(SIGTRAP); | 153 | ptrace_notify(SIGTRAP); |
154 | } | 154 | } |
155 | 155 | ||
156 | #ifdef TIF_NOTIFY_RESUME | ||
157 | /** | 156 | /** |
158 | * set_notify_resume - cause tracehook_notify_resume() to be called | 157 | * set_notify_resume - cause tracehook_notify_resume() to be called |
159 | * @task: task that will call tracehook_notify_resume() | 158 | * @task: task that will call tracehook_notify_resume() |
@@ -185,6 +184,5 @@ static inline void set_notify_resume(struct task_struct *task) | |||
185 | static inline void tracehook_notify_resume(struct pt_regs *regs) | 184 | static inline void tracehook_notify_resume(struct pt_regs *regs) |
186 | { | 185 | { |
187 | } | 186 | } |
188 | #endif /* TIF_NOTIFY_RESUME */ | ||
189 | 187 | ||
190 | #endif /* <linux/tracehook.h> */ | 188 | #endif /* <linux/tracehook.h> */ |
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index ddb3e05bc5fc..534a634283a4 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c | |||
@@ -1454,7 +1454,6 @@ long keyctl_get_security(key_serial_t keyid, | |||
1454 | */ | 1454 | */ |
1455 | long keyctl_session_to_parent(void) | 1455 | long keyctl_session_to_parent(void) |
1456 | { | 1456 | { |
1457 | #ifdef TIF_NOTIFY_RESUME | ||
1458 | struct task_struct *me, *parent; | 1457 | struct task_struct *me, *parent; |
1459 | const struct cred *mycred, *pcred; | 1458 | const struct cred *mycred, *pcred; |
1460 | struct cred *cred, *oldcred; | 1459 | struct cred *cred, *oldcred; |
@@ -1542,15 +1541,6 @@ not_permitted: | |||
1542 | error_keyring: | 1541 | error_keyring: |
1543 | key_ref_put(keyring_r); | 1542 | key_ref_put(keyring_r); |
1544 | return ret; | 1543 | return ret; |
1545 | |||
1546 | #else /* !TIF_NOTIFY_RESUME */ | ||
1547 | /* | ||
1548 | * To be removed when TIF_NOTIFY_RESUME has been implemented on | ||
1549 | * m68k/xtensa | ||
1550 | */ | ||
1551 | #warning TIF_NOTIFY_RESUME not implemented | ||
1552 | return -EOPNOTSUPP; | ||
1553 | #endif /* !TIF_NOTIFY_RESUME */ | ||
1554 | } | 1544 | } |
1555 | 1545 | ||
1556 | /* | 1546 | /* |