Skip to content

Commit 1f93e9f

Browse files
norovarndb
authored andcommitted
asm-generic: use compat version for preadv2 and pwritev2
Compat architectures that does not use generic unistd (mips, s390), declare compat version in their syscall tables for preadv2 and pwritev2. Generic unistd syscall table should do it as well. [arnd: this initially slipped through the review and an incorrect patch got merged. arch/tile/ is the only architecture that could be affected for their 32-bit compat mode, every other architecture we support today is fine.] Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 02da2d7 commit 1f93e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/uapi/asm-generic/unistd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,9 +718,9 @@ __SYSCALL(__NR_mlock2, sys_mlock2)
718718
#define __NR_copy_file_range 285
719719
__SYSCALL(__NR_copy_file_range, sys_copy_file_range)
720720
#define __NR_preadv2 286
721-
__SYSCALL(__NR_preadv2, sys_preadv2)
721+
__SC_COMP(__NR_preadv2, sys_preadv2, compat_sys_preadv2)
722722
#define __NR_pwritev2 287
723-
__SYSCALL(__NR_pwritev2, sys_pwritev2)
723+
__SC_COMP(__NR_pwritev2, sys_pwritev2, compat_sys_pwritev2)
724724

725725
#undef __NR_syscalls
726726
#define __NR_syscalls 288

0 commit comments

Comments
 (0)