Skip to contentSkip to conversation

xfs_io: Add statx support for PowerPC architecture

PATCH In review Chandan Rajendra 3 participants 3 messages Apr 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs_io: Add statx support for PowerPC architecture

Linux kernel commit f717629c7f834ab2efa05c7dbf0826f1d7c32ade (powerpc:
Wire up statx() syscall) added support for statx syscall for PowerPC architecture. This commit enables using 'statx' sub-command of xfs_io to be used on PowerPC.

---
This patch is based on Eric's "xfs_io: fix statx definition for non-x86 architecture" patch.

 io/statx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io/statx.h +1 -1
index eea7944..14361a8 100644
@@ -16,7 +16,7 @@
 #endif
 
 #ifndef __NR_statx
-# ifdef __i386__
+# if defined(__i386__) || defined(__powerpc__)
 #  define __NR_statx 383
 # elif defined (__x86_64__)
 #  if defined (__ILP32__)
Signature · 1 line
2.5.5
Reviewed-by on v1 1/1
#2 lore raw
In reply to Chandan Rajendra
Quoted 6 lines · Chandan Rajendra

Linux kernel commit f717629c7f834ab2efa05c7dbf0826f1d7c32ade (powerpc:
Wire up statx() syscall) added support for statx syscall for PowerPC architecture. This commit enables using 'statx' sub-command of xfs_io to be used on PowerPC.

Ok, sure - some day I hope to get rid of io/statx.h but for now I want to be sure we run on the architectures that people "care" about ;) so this sounds good.

Quoted 21 lines

---
This patch is based on Eric's "xfs_io: fix statx definition for non-x86 architecture" patch.

 io/statx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io/statx.h +1 -1
index eea7944..14361a8 100644
@@ -16,7 +16,7 @@
 #endif
 
 #ifndef __NR_statx
-# ifdef __i386__
+# if defined(__i386__) || defined(__powerpc__)
 #  define __NR_statx 383
 # elif defined (__x86_64__)
 #  if defined (__ILP32__)