]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix ununsed fstatat64_time64_statx
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Mar 2022 21:35:39 +0000 (18:35 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 23 Mar 2022 16:33:16 +0000 (13:33 -0300)
It is only called for legacy ABIs.

sysdeps/unix/sysv/linux/fstatat64.c

index a82d3dd4df78ac46effca980a587689b2406037c..2ab914380d320d4e55f1ac200ee2a7dae35ce8fb 100644 (file)
@@ -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