Skip to content

Commit c6cc4f7

Browse files
bulwahntorvalds
authored andcommitted
alpha: remove the needless aliases osf_{readv,writev}
Commit 987f20a ("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>
1 parent ae5b677 commit c6cc4f7

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

arch/alpha/kernel/osf_sys.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,18 +1278,6 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
12781278
return addr;
12791279
}
12801280

1281-
SYSCALL_DEFINE3(osf_readv, unsigned long, fd,
1282-
const struct iovec __user *, vector, unsigned long, count)
1283-
{
1284-
return sys_readv(fd, vector, count);
1285-
}
1286-
1287-
SYSCALL_DEFINE3(osf_writev, unsigned long, fd,
1288-
const struct iovec __user *, vector, unsigned long, count)
1289-
{
1290-
return sys_writev(fd, vector, count);
1291-
}
1292-
12931281
SYSCALL_DEFINE2(osf_getpriority, int, which, int, who)
12941282
{
12951283
int prio = sys_getpriority(which, who);

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
116 common osf_gettimeofday sys_osf_gettimeofday
126126
117 common osf_getrusage sys_osf_getrusage
127127
118 common getsockopt sys_getsockopt
128-
120 common readv sys_osf_readv
129-
121 common writev sys_osf_writev
128+
120 common readv sys_readv
129+
121 common writev sys_writev
130130
122 common osf_settimeofday sys_osf_settimeofday
131131
123 common fchown sys_fchown
132132
124 common fchmod sys_fchmod

0 commit comments

Comments
 (0)