diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2017-03-16 05:07:11 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-16 05:45:53 -0400 |
commit | f717629c7f834ab2efa05c7dbf0826f1d7c32ade (patch) | |
tree | b054b659373ec16ea49424496c416e314e0f641d | |
parent | fb5fe0fd626c425ed41842c4318aa7ab6f3c2db7 (diff) |
powerpc: Wire up statx() syscall
Test runs on a ppc64 BE guest succeeded. linux/samples/statx/test-statx
program was executed on the following file types,
1. Regular file
2. Directory
3. device file
4. symlink
5. Named pipe
The test run also included invoking test-statx with the runtime options
provided in the main() function of test-statx.c
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/include/asm/systbl.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/unistd.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/uapi/asm/unistd.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h index 4b369d83fe9c..1c9470881c4a 100644 --- a/arch/powerpc/include/asm/systbl.h +++ b/arch/powerpc/include/asm/systbl.h | |||
@@ -387,3 +387,4 @@ SYSCALL(copy_file_range) | |||
387 | COMPAT_SYS_SPU(preadv2) | 387 | COMPAT_SYS_SPU(preadv2) |
388 | COMPAT_SYS_SPU(pwritev2) | 388 | COMPAT_SYS_SPU(pwritev2) |
389 | SYSCALL(kexec_file_load) | 389 | SYSCALL(kexec_file_load) |
390 | SYSCALL(statx) | ||
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h index eb1acee91a20..9ba11dbcaca9 100644 --- a/arch/powerpc/include/asm/unistd.h +++ b/arch/powerpc/include/asm/unistd.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <uapi/asm/unistd.h> | 12 | #include <uapi/asm/unistd.h> |
13 | 13 | ||
14 | 14 | ||
15 | #define NR_syscalls 383 | 15 | #define NR_syscalls 384 |
16 | 16 | ||
17 | #define __NR__exit __NR_exit | 17 | #define __NR__exit __NR_exit |
18 | 18 | ||
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h index 2f26335a3c42..b85f14228857 100644 --- a/arch/powerpc/include/uapi/asm/unistd.h +++ b/arch/powerpc/include/uapi/asm/unistd.h | |||
@@ -393,5 +393,6 @@ | |||
393 | #define __NR_preadv2 380 | 393 | #define __NR_preadv2 380 |
394 | #define __NR_pwritev2 381 | 394 | #define __NR_pwritev2 381 |
395 | #define __NR_kexec_file_load 382 | 395 | #define __NR_kexec_file_load 382 |
396 | #define __NR_statx 383 | ||
396 | 397 | ||
397 | #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ | 398 | #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ |