Received: by 10.223.164.202 with SMTP id h10csp3860680wrb; Mon, 20 Nov 2017 06:14:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMZrp5CGNs7Gp/8t7iPm80NXoKhNHm4MNQNk0h8HSYmOM8UckkrV+xhYDNZGmDa6a9HiFwQf X-Received: by 10.99.53.72 with SMTP id c69mr13598402pga.225.1511187251882; Mon, 20 Nov 2017 06:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511187251; cv=none; d=google.com; s=arc-20160816; b=K/NRqMQk4TIz3Hznp8zTSvlzHvb+seuKbJMid871mkxYeSKk/TSGLOP5mKLb71eoBI +cDoMZdQQjHFbu4H8HFxO9BGJ3XbHv2mkrfQr7lQooBeY+HNdtNvMfriqP2IWRZhlMtT lFc/qkSk5MowT9+RgIxXsEDhx3gUh3Q2yEmUay9acsXg1eLWWFMzUZR28zj9HNliSMfn lT8y0BvDq6H4sJxP+9FOUhNKPxrqAC9rc2PublWfM0csS0ITrfGaL+2wKfyrZCwM/rli Q0Dj3mha9yOoqOMK34NTYOIX0AauwbXZet2tsR0M0AUwQm0asKyIR86JTH+kVtIL/tJK 97WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=XFY2y1IjEiaD4Te91yvS3jOu+4th71gP+ehvH8ZQWGY=; b=itk53q57oNx6tPBik2+vDW+bnX50BR/ODZna1KwU+yBc2RpmsujFvz27kKMZntNcuj z7wXMiCIcTbDvJpjXbw0R53fTrc8aJekr4e+97M7mNQ3AatxhSHprTfhgbwv6YSJfZRo RzWl776K4n8oaMW8DEm3c12/GVsSwjxuC/eJiuzH1N9dEmiXUAbrrRHPJE4Q5ihf4WcD C+V8bVbsOCPrp1awjKz9ncs0RrUIvS/zbEE7OXPNvmTok+46stYHFwCLdwQDMbBRcEWw IrVmx/AavZHZG+4hs9wWHICjwSQcOsCrExyJR5gtSCCeNuJXTxv/X1SW1YtArzoKLMeO moWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b91si8336770plb.819.2017.11.20.06.14.01; Mon, 20 Nov 2017 06:14:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751428AbdKTOMT (ORCPT + 66 others); Mon, 20 Nov 2017 09:12:19 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:49186 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbdKTOLT (ORCPT ); Mon, 20 Nov 2017 09:11:19 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAKEB9bc013053 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Nov 2017 14:11:10 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAKEB97u000602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Nov 2017 14:11:09 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAKEB8di032265; Mon, 20 Nov 2017 14:11:08 GMT Received: from bostrovs-us.us.oracle.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 20 Nov 2017 06:11:08 -0800 Subject: Re: Commit fcd8843c40 breaks old compilers To: Arnd Bergmann References: <09a3d9ca-d191-5899-613d-8d0dbe0b68ea@oracle.com> <1511026783.10238.2.camel@primarydata.com> <49fec52f-229a-4657-a80d-d1a40a9d38e4@oracle.com> Cc: Trond Myklebust , "Anna.Schumaker@Netapp.com" , "linux-kernel@vger.kernel.org" , "linux-nfs@vger.kernel.org" From: Boris Ostrovsky Message-ID: <99724bc1-c2a6-89d4-699b-50323e9fe804@oracle.com> Date: Mon, 20 Nov 2017 09:11:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/2017 07:52 AM, Arnd Bergmann wrote: > On Sat, Nov 18, 2017 at 7:07 PM, Boris Ostrovsky > wrote: >> >> On 11/18/2017 12:39 PM, Trond Myklebust wrote: >>> On Sat, 2017-11-18 at 12:19 -0500, Boris Ostrovsky wrote: >>>> A similar bug was fixed by e0714ec4f9efe7b86828b0dcc077fd8f5d8e5e91 >>>> but >>>> I don't think the same approach can work here. >>> >>> >>> I don't have any setups with gcc 4.4.4. What is it expecting here? Is >>> it expecting an extra set of braces due to the anonymous "struct"? > I can reproduce it with gcc-4.5 but not 4.6. We've had similar problems > in the past in other anonymous unions. IIRC anonymous struct initializers were added in 4.6.1. > >> I don't know if you want to change public header file just to get around >> this problem. > I think flipping the two members around should be safe here. It's > not exported to user space, and all other users of that structure > don't care about the order inside of the union. Trond already submitted a fix --- <20171118185011.4729-1-trond.myklebust@primarydata.com> (sorry, I can't provide a direct link right now) -boris From 1584589594750191446@xxx Mon Nov 20 12:53:18 +0000 2017 X-GM-THRID: 1584466461486741253 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread