]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
alpha: remove CONFIG_OSF4_COMPAT flag from syscall table
authorFiroz Khan <firoz.khan@linaro.org>
Tue, 13 Nov 2018 09:31:50 +0000 (15:01 +0530)
committerMatt Turner <mattst88@gmail.com>
Fri, 21 Dec 2018 16:57:56 +0000 (11:57 -0500)
Remove CONFIG_OSF4_COMPAT config flag from system call
table - systbls.S and to keep the same feature, add the
flag in osf_sys.c.

One of the patch in this patch series will generate the
system call table file. In order to come up with a common
implementation across all architecture, we need this change.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/systbls.S

index cff52d8ffdb12656070a4c5e73f5dad376cd9f86..4a147bf8537aebf8c62020f861efa21162ea2eb9 100644 (file)
@@ -1343,7 +1343,6 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
 }
 
 #ifdef CONFIG_OSF4_COMPAT
-
 /* Clear top 32 bits of iov_len in the user's buffer for
    compatibility with old versions of OSF/1 where iov_len
    was defined as int. */
@@ -1360,27 +1359,31 @@ osf_fix_iov_len(const struct iovec __user *iov, unsigned long count)
        }
        return 0;
 }
+#endif
 
 SYSCALL_DEFINE3(osf_readv, unsigned long, fd,
                const struct iovec __user *, vector, unsigned long, count)
 {
+#ifdef CONFIG_OSF4_COMPAT
        if (unlikely(personality(current->personality) == PER_OSF4))
                if (osf_fix_iov_len(vector, count))
                        return -EFAULT;
+#endif
+
        return sys_readv(fd, vector, count);
 }
 
 SYSCALL_DEFINE3(osf_writev, unsigned long, fd,
                const struct iovec __user *, vector, unsigned long, count)
 {
+#ifdef CONFIG_OSF4_COMPAT
        if (unlikely(personality(current->personality) == PER_OSF4))
                if (osf_fix_iov_len(vector, count))
                        return -EFAULT;
+#endif
        return sys_writev(fd, vector, count);
 }
 
-#endif
-
 SYSCALL_DEFINE2(osf_getpriority, int, which, int, who)
 {
        int prio = sys_getpriority(which, who);
index 5b2e8ecb7ce33cc08159fe00d01e4b8396b8fe35..59ca11d16aaf6633291ab035e20faac806b48db2 100644 (file)
@@ -132,13 +132,8 @@ sys_call_table:
        .quad sys_osf_getrusage
        .quad sys_getsockopt
        .quad sys_ni_syscall
-#ifdef CONFIG_OSF4_COMPAT
        .quad sys_osf_readv                     /* 120 */
        .quad sys_osf_writev
-#else
-       .quad sys_readv                         /* 120 */
-       .quad sys_writev
-#endif
        .quad sys_osf_settimeofday
        .quad sys_fchown
        .quad sys_fchmod