]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
TIF_NOTIFY_RESUME is defined on all targets now
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 24 Apr 2012 06:44:49 +0000 (02:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 May 2012 02:09:19 +0000 (22:09 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/tracehook.h
security/keys/keyctl.c

index 51bd91d911c3b3233e90301a4092a84750827776..8a2a3fc9bd05bb427f7ebd071ad51053c705b05d 100644 (file)
@@ -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()
@@ -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> */
index ddb3e05bc5fcd12fae86cf9c60edf6a1f57439c1..534a634283a4381a324f482e72fd90b365d8f936 100644 (file)
@@ -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;
@@ -1542,15 +1541,6 @@ not_permitted:
 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 */
 }
 
 /*