diff options
-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 | /* |