alpha: remove the needless aliases osf_{readv,writev}
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Tue, 4 Oct 2022 07:13:02 +0000 (09:13 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2022 17:27:39 +0000 (10:27 -0700)
Commit 987f20a9dcce ("a.out: Remove the a.out implementation") removes
CONFIG_OSF4_COMPAT and its functionality. Hence, sys_osf_{readv,writev}
are now just aliases of sys_{readv,writev}.

Remove these needless aliases.

[ Identical patch also posted by Jason A. Donenfeld ]

Link: https://lore.kernel.org/lkml/CAHk-=wjwvBc3VQMNtUVUrMBVoMPSPu26OuatZ_+1gZ2m-PmmRA@mail.gmail.com/
Link: https://lore.kernel.org/all/20221004135301.1420873-1-Jason@zx2c4.com/
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/syscalls/syscall.tbl

index 68ec314d3fac3baa77a6f92770964039c6483922..c54469b369cb67a2fe8d7e94417107c7a658668d 100644 (file)
@@ -1278,18 +1278,6 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
        return addr;
 }
 
-SYSCALL_DEFINE3(osf_readv, unsigned long, fd,
-               const struct iovec __user *, vector, unsigned long, count)
-{
-       return sys_readv(fd, vector, count);
-}
-
-SYSCALL_DEFINE3(osf_writev, unsigned long, fd,
-               const struct iovec __user *, vector, unsigned long, count)
-{
-       return sys_writev(fd, vector, count);
-}
-
 SYSCALL_DEFINE2(osf_getpriority, int, which, int, who)
 {
        int prio = sys_getpriority(which, who);
index 3515bc4f16a4ff285dcfd4c4540e7709a1d43c6a..8ebacf37a8cf4ac3050e3e2ae821245d7074cdea 100644 (file)
 116    common  osf_gettimeofday                sys_osf_gettimeofday
 117    common  osf_getrusage                   sys_osf_getrusage
 118    common  getsockopt                      sys_getsockopt
-120    common  readv                           sys_osf_readv
-121    common  writev                          sys_osf_writev
+120    common  readv                           sys_readv
+121    common  writev                          sys_writev
 122    common  osf_settimeofday                sys_osf_settimeofday
 123    common  fchown                          sys_fchown
 124    common  fchmod                          sys_fchmod