about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-09 18:35:39 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-23 13:33:16 -0300
commitc7f05bd5342517f3f751e6ea8dec1916b80bee8a (patch)
tree9c6accd60d3a7f40b3c341edffb46bd2e6e706ac /sysdeps/unix/sysv/linux
parenta4ea49f85ea421979e8b269e286e450daac57454 (diff)
downloadglibc-c7f05bd5342517f3f751e6ea8dec1916b80bee8a.tar.gz
glibc-c7f05bd5342517f3f751e6ea8dec1916b80bee8a.tar.xz
glibc-c7f05bd5342517f3f751e6ea8dec1916b80bee8a.zip
Fix ununsed fstatat64_time64_statx
It is only called for legacy ABIs.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/fstatat64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/fstatat64.c b/sysdeps/unix/sysv/linux/fstatat64.c
index a82d3dd4df..2ab914380d 100644
--- a/sysdeps/unix/sysv/linux/fstatat64.c
+++ b/sysdeps/unix/sysv/linux/fstatat64.c
@@ -40,6 +40,11 @@ _Static_assert (sizeof (__blkcnt_t) == sizeof (__blkcnt64_t),
                 "__blkcnt_t and __blkcnt64_t must match");
 #endif
 
+#if (__WORDSIZE == 32 \
+     && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) \
+     || defined STAT_HAS_TIME32
+# define FSTATAT_USE_STATX 1
+
 static inline int
 fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf,
 			int flag)
@@ -73,11 +78,6 @@ fstatat64_time64_statx (int fd, const char *file, struct __stat64_t64 *buf,
 
   return r;
 }
-
-#if (__WORDSIZE == 32 \
-     && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) \
-     || defined STAT_HAS_TIME32
-# define FSTATAT_USE_STATX 1
 #else
 # define FSTATAT_USE_STATX 0
 #endif