]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390: switch to generic compat rt_sigpending()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 25 Dec 2012 19:53:15 +0000 (14:53 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:16:12 +0000 (18:16 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/Kconfig
arch/s390/kernel/compat_linux.c
arch/s390/kernel/compat_linux.h
arch/s390/kernel/compat_wrapper.S

index 26e584eda6d6c902b726d45737ed88018f8c5fc0..f68a030411b542b2321c98187ffc92cd50fbbbb5 100644 (file)
@@ -142,6 +142,7 @@ config S390
        select CLONE_BACKWARDS2
        select GENERIC_SIGALTSTACK
        select GENERIC_COMPAT_RT_SIGPROCMASK
+       select GENERIC_COMPAT_RT_SIGPENDING
 
 config SCHED_OMIT_FRAME_POINTER
        def_bool y
index cfaba34bef3a63915a35aab3d802a728716a5d46..877b18be0f4aa4e28b0e5e872f418f1790f25aa1 100644 (file)
@@ -368,26 +368,6 @@ asmlinkage long sys32_sched_rr_get_interval(compat_pid_t pid,
        return ret;
 }
 
-asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *set,
-                               size_t sigsetsize)
-{
-       sigset_t s;
-       compat_sigset_t s32;
-       int ret;
-       mm_segment_t old_fs = get_fs();
-               
-       set_fs (KERNEL_DS);
-       ret = sys_rt_sigpending((sigset_t __force __user *) &s, sigsetsize);
-       set_fs (old_fs);
-       if (!ret) {
-               s32.sig[1] = (s.sig[0] >> 32);
-               s32.sig[0] = s.sig[0];
-               if (copy_to_user (set, &s32, sizeof(compat_sigset_t)))
-                       return -EFAULT;
-       }
-       return ret;
-}
-
 asmlinkage long
 sys32_rt_sigqueueinfo(int pid, int sig, compat_siginfo_t __user *uinfo)
 {
index 1b5c451381e09042d2bb371709d13b045aca7f3b..385567661ced2d1f1d39f497a1a709fbbcd61316 100644 (file)
@@ -115,7 +115,6 @@ long sys32_truncate64(const char __user * path, unsigned long high,
 long sys32_ftruncate64(unsigned int fd, unsigned long high, unsigned long low);
 long sys32_sched_rr_get_interval(compat_pid_t pid,
                                 struct compat_timespec __user *interval);
-long sys32_rt_sigpending(compat_sigset_t __user *set, size_t sigsetsize);
 long sys32_rt_sigqueueinfo(int pid, int sig, compat_siginfo_t __user *uinfo);
 long sys32_init_module(void __user *umod, unsigned long len,
                       const char __user *uargs);
index 9bea6f20050049d0556c4cf83371678f998b5d2a..2b813b3edbd1d13e140a9f60bacbf55044ea8d6d 100644 (file)
@@ -703,7 +703,7 @@ ENTRY(sys32_rt_sigprocmask_wrapper)
 ENTRY(sys32_rt_sigpending_wrapper)
        llgtr   %r2,%r2                 # sigset_emu31 *
        llgfr   %r3,%r3                 # size_t
-       jg      sys32_rt_sigpending     # branch to system call
+       jg      compat_sys_rt_sigpending        # branch to system call
 
 ENTRY(compat_sys_rt_sigtimedwait_wrapper)
        llgtr   %r2,%r2                 # const sigset_emu31_t *