* [PATCH] powerpc: Wire up statx() syscall
@ 2017-03-16 9:07 Chandan Rajendra
2017-03-20 9:52 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Chandan Rajendra @ 2017-03-16 9:07 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Chandan Rajendra, Chris.Packham, mpe
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>
---
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(-)
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index 4b369d8..1c94708 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -387,3 +387,4 @@ SYSCALL(copy_file_range)
COMPAT_SYS_SPU(preadv2)
COMPAT_SYS_SPU(pwritev2)
SYSCALL(kexec_file_load)
+SYSCALL(statx)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index eb1acee..9ba11db 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -12,7 +12,7 @@
#include <uapi/asm/unistd.h>
-#define NR_syscalls 383
+#define NR_syscalls 384
#define __NR__exit __NR_exit
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index 2f26335..b85f142 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -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_ */
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc: Wire up statx() syscall
2017-03-16 9:07 [PATCH] powerpc: Wire up statx() syscall Chandan Rajendra
@ 2017-03-20 9:52 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-03-20 9:52 UTC (permalink / raw)
To: Chandan Rajendra, linuxppc-dev; +Cc: Chandan Rajendra, Chris.Packham
On Thu, 2017-03-16 at 09:07:11 UTC, Chandan Rajendra wrote:
> 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>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/f717629c7f834ab2efa05c7dbf0826
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-20 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 9:07 [PATCH] powerpc: Wire up statx() syscall Chandan Rajendra
2017-03-20 9:52 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).