Skip to content

Commit d701cca

Browse files
rsalvaterrampe
authored andcommitted
powerpc: wire up preadv2 and pwritev2 syscalls
Wire up preadv2/pwritev2 in the same way as preadv/pwritev. Fixes two build warnings on ppc64. mpe: Lightly tested with fio (slightly hacked to add the syscall wrappers): fio-4217 [009] .... 1304.635300: sys_preadv2(fd: 3, vec: 10025821de0, vlen: 1, pos_l: 6253000, pos_h: 0, flags: 1) fio-4217 [009] .... 1304.635474: sys_preadv2 -> 0x1000 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 2bc79ff commit d701cca

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

arch/powerpc/include/asm/systbl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,3 +384,5 @@ SYSCALL(ni_syscall)
384384
SYSCALL(ni_syscall)
385385
SYSCALL(mlock2)
386386
SYSCALL(copy_file_range)
387+
COMPAT_SYS_SPU(preadv2)
388+
COMPAT_SYS_SPU(pwritev2)

arch/powerpc/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <uapi/asm/unistd.h>
1313

1414

15-
#define NR_syscalls 380
15+
#define NR_syscalls 382
1616

1717
#define __NR__exit __NR_exit
1818

arch/powerpc/include/uapi/asm/unistd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,5 +390,7 @@
390390
#define __NR_membarrier 365
391391
#define __NR_mlock2 378
392392
#define __NR_copy_file_range 379
393+
#define __NR_preadv2 380
394+
#define __NR_pwritev2 381
393395

394396
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */

0 commit comments

Comments
 (0)