Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1408360

Re: [GIT PULL] Please pull NFS client changes for Linux 4.7

Path csiph.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [GIT PULL] Please pull NFS client changes for Linux 4.7
Date Sat, 28 May 2016 02:40:01 +0200
Message-ID <rDAsh-21c-9@gated-at.bofh.it> (permalink)
References <rDA8V-1UR-5@gated-at.bofh.it>
X-Original-To Boris Ostrovsky <boris.ostrovsky@oracle.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=KJ+O5AT3y5QTeOaNQjSDVIwdkJ0DD/nebz9A9OKtDrw=; b=Ch2+NCGaluf0PcA8EbpMsTkzsHDdMFaJ6huTi2iQ0YXuFPzeHyyKaCkoE6AXtJa+Gd Y5nqnTTOL+Cn+um+xyfygeU41kYnWXuqm7dOJzltIjyF/hSeNZsFvNUpuo1vkfUG/Jkv VDYlj/SFRh/J2GQfKziavAS+SoVeJy0qEjthkf2bprdwuLU3c/zDtq8/SdQSi2aLDP2i 75f9D/888ICALwVZzm2BoB4huzjunsui320oJ4b5u3hNItp7Nd0jfqk1NZjRQ/VyekQm 5jLCt4RorB20/ltWt6nN+BBw1MhISnC33lnvaqEQEoGqRkQF2i5e2MFLoKVgsw3dXpdw gNcA==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=KJ+O5AT3y5QTeOaNQjSDVIwdkJ0DD/nebz9A9OKtDrw=; b=UhQZ73TeHa8mJ6gj3a0mO+nLgH7welFYMtynOl3Pv7CTZ9KgB9jVqrpeBACIi2fEZR Tk1lnZ0YfxSHe1CmK150t9jNyhWHoFwIUMmeV2iK3waTgohayWzJL8j6v2IhW20C4K/4 dajbANodqbrZuJB3cEPyph8isDAqHDS85ry1E=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=KJ+O5AT3y5QTeOaNQjSDVIwdkJ0DD/nebz9A9OKtDrw=; b=Lc4wzPHCsurDjoN/k2KsCKmQDrIUqwx79j4OtxXUxZ5G5I6iZSpy42rytnqzAQa6eZ 2Cj28acGKC/3ovH3XDDJjaL2l2nDnM6Q0JIkw/ERyw/6AnRI8CesjMLUCgbW9MElydqP GcL0ZftD6t2SBvgIuPTzNfNfVVrPxfGd4A0Pyo3oBRaacFUb4yzu/Q08UgkgV+5QaEFl 1jv9auPVyKxmCb/ZG+nlBPRIc8GUqpUe7Mml4X1yRFOC7ft+jntJ2+tqnUj7MCQBvvET /2NID8KZH8BdMC+lje8G8C4twaUFVlBqELQ6umMDThVymQmmoYjUEqAV/FRUH7ptNDhr jA5g==
X-Gm-Message-State ALyK8tL4Eh5rlpJlsAoWdTmGl0FWgDn9FkN6pMDLcRKaJ1dTgEAqkiXtpNa4YJQjC/h+GPj/p4TGT3XdMnoQtQ==
MIME-Version 1.0
X-Received by 10.36.254.131 with SMTP id w125mr1052030ith.49.1464395418807; Fri, 27 May 2016 17:30:18 -0700 (PDT)
X-Google-Sender-Auth D3epthyctfHP8VNSn5FIUUs4Cs4
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
X-Original-Cc Trond Myklebust <trond.myklebust@primarydata.com>, Anna Schumaker <Anna.Schumaker@netapp.com>, Linux NFS Mailing List <linux-nfs@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
X-Original-Date Fri, 27 May 2016 17:30:18 -0700
X-Original-Message-ID <CA+55aFzxNC0cryH4Cw660NXR2GyZ+A4qQnqRjpPf=uc=G4Wciw@mail.gmail.com>
X-Original-References <19769bfc-efc7-495f-9574-f771236a9765@default>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1408360

Show key headers only | View raw


On Fri, May 27, 2016 at 5:17 PM, Boris Ostrovsky
<boris.ostrovsky@oracle.com> wrote:
>
> It does fix it.

Ok, I've committed that in my tree, will do my usual build test and push out.

> This is not the first time we've hit this and people have always been
> changing code to initialize fields in execution path (and I didn't fix
> it here myself because I wasn't sure where to do that).  I guess we
> could have been just adding braces all along.

Well, adding the braces also requires that you get the *order* of the
member initialization right, since the braces will be unnamed.

In this case, the unnamed union was the first member, so the trivial
patch worked, but that's not always the case.

In fact, in this case, I think an alternate and possibly better fix
would have been to just remove the ".data = { 0 }" initializer
entirely, since in its absence it would have been initialized to zero
anyway.

But since you already tested my uglier "just add a brace like the
error message suggests" that's the one I'll be committing.

It's a fairly annoying failure of older compilers, exactly because
people with newer compilers won't even realize that they are causing
problems.

               Linus

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [GIT PULL] Please pull NFS client changes for Linux 4.7 Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-05-28 02:20 +0200
  Re: [GIT PULL] Please pull NFS client changes for Linux 4.7 Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-28 02:40 +0200

csiph-web