Received: by 10.223.164.202 with SMTP id h10csp2364257wrb; Sat, 18 Nov 2017 20:19:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMaxB8/SJUM3WWg/VjueF7hp7wmJjjklo1QxOn0hp2Dj7rCveQjCt8vXrzKrdKbqj0Mn/czV X-Received: by 10.98.34.79 with SMTP id i76mr7071402pfi.42.1511065189885; Sat, 18 Nov 2017 20:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511065189; cv=none; d=google.com; s=arc-20160816; b=mpilkQACtJhhhuNRzPJW4o8l0dj18WYFbb9NAhRE99exmZONWm4Pwgc9NUqQcSmkge 5mJZXiSgmbsmhLGO8fBYEIebYc+8zAAWN/vt7Dx2hfksHcpWjUbcB/SDefNiQwmzKu3X Ahpn5mRjK+yfCUnukHoubjAUVbEZ7KySz4w7VjyPjLzSpD7mihoKeb3zQGOKEstjxChF gMOZBZHOZMwXJIs3ShqcgW6MrYK/oRd9hWgAQOEJh36NIu/n5MwaGkQLybyJh6Nnavku uzIsWYPWTTHUdN/HuazKAtpAvFlsRus3Ubli/3l6qRcq/X+/K1xsYMmAhzvgt/U0E9/h vjFg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=0VDNCX+6zzYHadyF6472bIXF0NF7yitJO1C7crTbiVM=; b=iLb7W76jmFbm8KsE4/xTj1GWzVP4EfTv80I157AcLifjs2xIk1UJCCyfLsWta9pjaB cEhmRdZ9H/ek7DZIOiiWXG6S/RvaOh8UMbhj9fH+TOukPhA3i7lRgEkzKhktaDosoCNf BAsa2EGD7qixyJlPVPBZjIlKKxM/JPVceccNcOD1Xy2vwoo8lSYBg7FBCG0ofCNvdA/K 4daeRnkKo7KgZgGijgo8JdwaVAvHukD/HP1sN65hsKAJNZ+ORcA+iHJEGPykKC6kqA6S F4BGLSmACxXum2Y9nZvxChmfanOxy6LL5RzZGzczmXh/9W6sFqE1E+vje1p1d+7psVfX dkdA== 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 z28si5436312pgc.625.2017.11.18.20.19.37; Sat, 18 Nov 2017 20:19:49 -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 S1760928AbdKRT0o (ORCPT + 92 others); Sat, 18 Nov 2017 14:26:44 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:34652 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbdKRT0g (ORCPT ); Sat, 18 Nov 2017 14:26:36 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAIJQLC6011470 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Nov 2017 19:26:21 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAIJQK5g018192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Nov 2017 19:26:20 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vAIJQJI5005624; Sat, 18 Nov 2017 19:26:20 GMT Received: from [10.39.244.8] (/10.39.244.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 18 Nov 2017 11:26:19 -0800 Subject: Re: [PATCH] NFSv4: Ensure gcc 4.4.4 can compile initialiser for "invalid_stateid" To: Trond Myklebust , Anna Schumaker Cc: "linux-nfs @ vger . kernel . org" , "linux-kernel @ vger . kernel . org" References: <20171118185011.4729-1-trond.myklebust@primarydata.com> From: Boris Ostrovsky Message-ID: <5f7d708b-a362-1fc7-2993-cbcbdefe42cc@oracle.com> Date: Sat, 18 Nov 2017 14:26:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171118185011.4729-1-trond.myklebust@primarydata.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/18/2017 01:50 PM, Trond Myklebust wrote: > gcc 4.4.4 is too old to have full C11 anonymous union support, so > the current initialiser fails to compile. > > Reported-by: Boris Ostrovsky > Signed-off-by: Trond Myklebust (compile-)Tested-by: Boris Ostrovsky > --- > fs/nfs/nfs4state.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c > index 980462d577ca..231b5ea2464a 100644 > --- a/fs/nfs/nfs4state.c > +++ b/fs/nfs/nfs4state.c > @@ -71,8 +71,8 @@ const nfs4_stateid zero_stateid = { > }; > const nfs4_stateid invalid_stateid = { > { > - .seqid = cpu_to_be32(0xffffffffU), > - .other = { 0 }, > + /* Funky initialiser keeps older gcc versions happy */ > + .data = { 0xff, 0xff, 0xff, 0xff, 0 }, > }, > .type = NFS4_INVALID_STATEID_TYPE, > }; > From 1584466592511543691@xxx Sun Nov 19 04:18:14 +0000 2017 X-GM-THRID: 1584466592511543691 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread