From patchwork Mon Nov 7 16:42:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 81126 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1104884qge; Mon, 7 Nov 2016 08:42:56 -0800 (PST) X-Received: by 10.99.44.84 with SMTP id s81mr12076989pgs.153.1478536976478; Mon, 07 Nov 2016 08:42:56 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id bg3si23268853pab.315.2016.11.07.08.42.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 08:42:56 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-74491-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-74491-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-74491-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version; q=dns; s=default; b=BFAEi GLJUkryL5fllG1GuyanqPD23jRo6IbSIFsyvhqwajOfk2RRt91oZvUwgcgfrqnjd LswXWszNcv+4kAPZwACCU84wZ/W7363z0j+i3ipSnti8BKqMR5myndxecmeTgUMV 3MAsvoca6oiQD+niZqIDILHpG8ltCu0riF2TE8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version; s=default; bh=bB2MO/8J5lm +LIYlOeNu3c2W3Gg=; b=JOFIxpJyhQUZqPq+qT9VfWX3clZlhXLq44hr6DWjhWT VXymF+3fX0Dd1uKYLcesida16EJW7fQ2IUn1DCtS88eBD+nWescOEKXPe7cy938D f0R6k5zOJY+VJoMBs+upPTSnVdN25mVX5aArVWRc8ekUiDcuPD5h40BDGzmvFjyQ = Received: (qmail 79525 invoked by alias); 7 Nov 2016 16:42:44 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 78284 invoked by uid 89); 7 Nov 2016 16:42:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=checkin, norov, Yury, yury X-HELO: NAM03-BY2-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Steve.Ellcey@cavium.com; Message-ID: <1478536945.4630.34.camel@caviumnetworks.com> Subject: Re: [PATCH] Updated version of define for __ASSUME_ST_INO_64_BIT From: Steve Ellcey To: Date: Mon, 7 Nov 2016 08:42:25 -0800 In-Reply-To: <1477600905.15823.9.camel@caviumnetworks.com> References: <1477600905.15823.9.camel@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: SN1PR10CA0082.namprd10.prod.outlook.com (10.164.10.178) To SN2PR0701MB1071.namprd07.prod.outlook.com (10.160.59.17) X-MS-Office365-Filtering-Correlation-Id: 5760d67d-6ff5-4082-6762-08d4072d10d8 X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 2:Lkv0I5mxJlvmgZ8yOXQizfew9z6rDq88IPXTVIjcRxrpwp0ayX3r2w/gRsomqP956ziK2L/lRGG46OlqWLqjAmdpsm1FtaZQGi8gdD7JBoTeNOY0AIVfSG8YRPP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LDZ6zhRYjlxuGGGBuL0PSFqaWpRY4UEEhibo/TzfhkmYT7wQdOUd/ssoIjPPTlpdaHU4h8s6G3+S; 20:3XM8m4qONJkH579BUY888KvlaUH8sSVuYPzpTCJJ+FUsOQ0gGxEa1ABXolTQUpkHFq0CAU5iQwYRB5hYgehplanH7GfDTXJaQYcNiyzQFEGR6BC36IG4w+vm3errdX2H4q3lkA1SIxBwqOPLYqGQDEhJTgRjiot5skltbt/XFTxcBdMP8gwJNj5iCUeSxCCIErjvPEu8Wol9wTeRwV5thhV7SQPHgoqA8ewyPyD+DNSIYns+a3XfcXPjVGkS4G8J1DvRXZSK1mdQ/tj5WY+l2fAuseN9Zt2SuoL9HyEmqctkvspcUS63e/I3uI3dsOCJouO6+xIwT2WCyHQuBlGlW1FAq3mPZD4NkYkFm1dY6qVizKN9RvZKzibvJiob0CIcXwfyQW0Ywh5zxdeP7nJZ5FDsdQsO5xhh7l8MRY6Arjl/7izRYukxdC+hP59OE/1W8tyBI7HHzIlkoeqwmduw5R83HPP6HbkdKCyH8glsoyw7bVZ50SoG47ribMV0RuAXEivO2y6+EbJ/XUh6TOHQPAEq758i18vS6h0OvPz84v92UXUeU1BZILajDZrQW8vbYEfhergdgUCr9YI/QVXf618/YdfvSv/Z0LjD6t2QquY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415321)(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:SN2PR0701MB1071; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0701MB1071; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 4:uB+jSiUuEs7QApDyM8+24pwMp/hYvBDFWQ/03XBU06syrVv90ztTd+HQDsVnt0WjTwbSEAvWVxbOlBqzoOsOnfee32Uacdt0FuXlqB7nzBbN9bDWmEgm6wDP27FkBXB0WBayvZiMI1hRgZwaNBReQQa2+YtKAZux2uuUP1ZZxZIT57HRDa7rP75hK+/G9uOFzUpLO/alwaGwMJIK5oiDSOmNxk/5CdCE2ZdGJ3D24qYw4Sh0mohW9e3Pp9q3HVqyo1RV05sN8ByIM1HmDCtYKfWJggc3OODAPXDoEH9oIHIvNcVJmwrK/ZFok5Qz9NKZXWiwo/I5S5zSQWRNOOVIgNaZ/So8ixg6fLslpiBwnj9OU58aWlOrR6f/rV7C6jFJkKkfoFfzbMd+0n6TLmGeJiY7/WrGNcK2svOLzHo4f2IlcC1DShp2MNGIX1rYw+YnCWkDNHaMrICpv/6Ff9d2cQ== X-Forefront-PRVS: 0119DC3B5E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(377424004)(51444003)(24454002)(199003)(512874002)(6916009)(6116002)(105586002)(2950100002)(19580405001)(189998001)(3846002)(106356001)(450100001)(68736007)(33646002)(76176999)(50986999)(2351001)(92566002)(107886002)(5890100001)(50226002)(42882006)(69596002)(103116003)(97736004)(53416004)(2476003)(66066001)(4001150100001)(42186005)(81166006)(81156014)(110136003)(7736002)(4610100001)(586003)(101416001)(2906002)(8676002)(568964002)(305945005)(77096005)(36756003)(84326002)(7846002)(15975445007)(5660300001)(6666003)(19580395003)(99106002)(15760500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1071; H:sellcey-lt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1071; 23:a9Fy/Y3zUVGrd/SDxlZqp1NKfnUygwzy2hDLbau?= =?us-ascii?Q?e5yX4UFc0pGvy+cv2/4Je+YXySfwKxcrh39hfAQLidiJCh3LJnxZoiVX2KQd?= =?us-ascii?Q?GL1U7ned0u2kwVPYuig7+mzOm6lVYxH4jFPOM4gzuCmeH4X4te2ualiV6ztc?= =?us-ascii?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aCfLimAF9wfJ7ft1D3vXylUzCLBDs9nAmwB25iZ/XKV4+HmtDcRXJ7oJs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 7:Sxb9lIJfZ20q7cpLmbDH+iyO3xLPAR2gkoUyQIWdFtFfYScP/lCMZajlzmNe1Zp40yPI0WS9AqXaiAumVGYIX/cr4pRpfRoCiKNSO/HkGmR9zOh0dlwJd7z/zvywAkCxWz4N1rXOeDa8qZt6oqr5QhMwCHgjKh0aieONrEswcMqZfn1mHDKBKJRx1PjyHmwryQVEdvn+L3D2yylqBt+5/Z20JR7CMbVsl4vID9JaOG6YeYp+ZRgq6gkXmfXYADjgjCdevLlB4UEoj0wwYE+J/cZcpotKfVBQsZjJihQzLwOChRmK3GCdf/y8jCD8liL0xVp3YefGfyCnWOmbijFah4+36qihfKC54rbscqnfs3g= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2016 16:42:30.1791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1071 Ping. On Thu, 2016-10-27 at 13:41 -0700, Steve Ellcey wrote: > Yury, > > I took a look at your __ASSUME_ST_INO_64_BIT patch at: > >         https://sourceware.org/ml/libc-alpha/2016-09/msg00075.html > > I think that, rather than ifdef'ing the setting of > __ASSUME_ST_INO_64_BIT in sysdeps/unix/sysv/linux/kernel-features.h, > the setting should be left as unconditional and then sh and alpha can > undef and re-define it to zero after including linux/kernel- > features.h. > > Here is my modified version of your patch, I tested it on x86 just to  > make sure I didn't break anything obvious, but I don't have hardware to > test sh or alpha. > > Can someone approve this for checkin? > > Steve Ellcey > sellcey@caviumnetworks.com > > > 2016-10-27  Yury Norov   >             Steve Ellcey > >         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define >           __ASSUME_ST_INO_64_BIT as 0 >         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise. >         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if >           over the code where __ASSUME_ST_INO_64_BIT is used. >         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise. >         * sysdeps/unix/sysv/linux/xstat64.c: Likewise. >         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise. diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h index 732749e..f09222d 100644 --- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h +++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h @@ -23,6 +23,7 @@ #include_next #undef __ASSUME_ST_INO_64_BIT +#define __ASSUME_ST_INO_64_BIT 0 /* There never has been support for fstat64. */ #undef __ASSUME_STATFS64 diff --git a/sysdeps/unix/sysv/linux/fxstat64.c b/sysdeps/unix/sysv/linux/fxstat64.c index 5468dd6..8d10282 100644 --- a/sysdeps/unix/sysv/linux/fxstat64.c +++ b/sysdeps/unix/sysv/linux/fxstat64.c @@ -33,7 +33,7 @@ ___fxstat64 (int vers, int fd, struct stat64 *buf) { int result; result = INLINE_SYSCALL (fstat64, 2, fd, buf); -#if defined _HAVE_STAT64___ST_INO && !defined __ASSUME_ST_INO_64_BIT +#if defined _HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino) buf->st_ino = buf->__st_ino; #endif diff --git a/sysdeps/unix/sysv/linux/lxstat64.c b/sysdeps/unix/sysv/linux/lxstat64.c index 09a678a..4d8c0a6 100644 --- a/sysdeps/unix/sysv/linux/lxstat64.c +++ b/sysdeps/unix/sysv/linux/lxstat64.c @@ -32,7 +32,7 @@ ___lxstat64 (int vers, const char *name, struct stat64 *buf) { int result; result = INLINE_SYSCALL (lstat64, 2, name, buf); -#if defined _HAVE_STAT64___ST_INO && !defined __ASSUME_ST_INO_64_BIT +#if defined _HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino) buf->st_ino = buf->__st_ino; #endif diff --git a/sysdeps/unix/sysv/linux/sh/kernel-features.h b/sysdeps/unix/sysv/linux/sh/kernel-features.h index c5240fa..ea4fdbc 100644 --- a/sysdeps/unix/sysv/linux/sh/kernel-features.h +++ b/sysdeps/unix/sysv/linux/sh/kernel-features.h @@ -44,6 +44,7 @@ /* SH does not have a 64-bit inode field. */ #undef __ASSUME_ST_INO_64_BIT +#define __ASSUME_ST_INO_64_BIT 0 /* SH4 ABI does not really require argument alignment for 64-bits, but the kernel interface for p{read,write}64 adds a dummy long argument diff --git a/sysdeps/unix/sysv/linux/xstat64.c b/sysdeps/unix/sysv/linux/xstat64.c index 2075383..00a4459 100644 --- a/sysdeps/unix/sysv/linux/xstat64.c +++ b/sysdeps/unix/sysv/linux/xstat64.c @@ -33,7 +33,7 @@ ___xstat64 (int vers, const char *name, struct stat64 *buf) { int result; result = INLINE_SYSCALL (stat64, 2, name, buf); -#if defined _HAVE_STAT64___ST_INO && !defined __ASSUME_ST_INO_64_BIT +#if defined _HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino) buf->st_ino = buf->__st_ino; #endif diff --git a/sysdeps/unix/sysv/linux/xstatconv.c b/sysdeps/unix/sysv/linux/xstatconv.c index c5fbf3d..27b528c 100644 --- a/sysdeps/unix/sysv/linux/xstatconv.c +++ b/sysdeps/unix/sysv/linux/xstatconv.c @@ -190,7 +190,7 @@ __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf) buf->__pad1 = 0; #endif #ifdef _HAVE_STAT64___ST_INO -# ifndef __ASSUME_ST_INO_64_BIT +# if !__ASSUME_ST_INO_64_BIT if (kbuf->st_ino == 0) buf->st_ino = kbuf->__st_ino; else