From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E8C143858424; Thu, 10 Mar 2022 19:21:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8C143858424 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] Fix ununsed fstatat64_time64_statx X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 82ad7fed52ec30b7b39d31d19fdf4b979c20e52f X-Git-Newrev: 7e8c217292ffe2d841cfc697e53421de277e41d5 Message-Id: <20220310192136.E8C143858424@sourceware.org> Date: Thu, 10 Mar 2022 19:21:36 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2022 19:21:37 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7e8c217292ffe2d841cfc697e53421de277e41d5 commit 7e8c217292ffe2d841cfc697e53421de277e41d5 Author: Adhemerval Zanella Date: Wed Mar 9 18:35:39 2022 -0300 Fix ununsed fstatat64_time64_statx Diff: --- sysdeps/unix/sysv/linux/fstatat64.c | 10 +++++----- 1 file 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