Skip to contentSkip to conversation

powerpc: Wire up statx() syscall

PATCH Applied Chandan Rajendra 2 participants 2 messages Mar 16, 2017 – Mar 20, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 arch/powerpc/include/asm/systbl.h      | 1 +
 arch/powerpc/include/asm/unistd.h      | 2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/include/asm/systbl.h +1 -0
index 4b369d8..1c94708 100644
@@ -387,3 +387,4 @@ SYSCALL(copy_file_range)
 COMPAT_SYS_SPU(preadv2)
 COMPAT_SYS_SPU(pwritev2)
 SYSCALL(kexec_file_load)
+SYSCALL(statx)
arch/powerpc/include/asm/unistd.h +1 -1
index eb1acee..9ba11db 100644
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls		383
+#define NR_syscalls		384
 
 #define __NR__exit __NR_exit
 
arch/powerpc/include/uapi/asm/unistd.h +1 -0
index 2f26335..b85f142 100644
@@ -393,5 +393,6 @@
 #define __NR_preadv2		380
 #define __NR_pwritev2		381
 #define __NR_kexec_file_load	382
+#define __NR_statx		383
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
Signature · 1 line
2.5.5
#1 lore raw
Quoted 9 lines · Chandan Rajendra

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

Quoted 4 lines

The test run also included invoking test-statx with the runtime options provided in the main() function of test-statx.c

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/f717629c7f834ab2efa05c7dbf0826

cheers