From: Andrew Morton <akpm@linux-foundation.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>,
Trond Myklebust <trond.myklebust@primarydata.com>,
Anna Schumaker <Anna.Schumaker@netapp.com>
Subject: Re: [BUILD FAILURE] nfs4state.c fails to compile with gcc 4.5.4
Date: Wed, 29 Nov 2017 19:39:27 -0800 [thread overview]
Message-ID: <20171129193927.e4248d8a797b90aa03edd0ff@linux-foundation.org> (raw)
In-Reply-To: <CA+55aFwtc+_ohqvFXZC6rqWbOEL1SbLF-oR=v+x+2Y2oVr+cuQ@mail.gmail.com>
On Wed, 29 Nov 2017 19:27:45 -0800 Linus Torvalds <torvalds@linux-foundation.org> wrote:
> On Wed, Nov 29, 2017 at 6:58 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
> >
> > Seems it can't handle the initialization of an anonymous struct within
> > an anonymous union.
>
> I think we've seen this before, and I think there was some trick to
> make it work with older gcc versions.
>
> Maybe the unnamed entry that gets initialized had to be declared
> first, and the initializer needed an extra set of braces?
>
> Something like that.
>
> But maybe the answer is just to say "4.5.4 is really old".
>
> Doing some log digging gives me
>
> ee9d3429c0e4 ("net/sched/sch_red.c: work around gcc-4.4.4 anon
> union initializer issue")
> aa4bf44dc851 ("userns: use union in {g,u}idmap struct")
> 6c09ffd02725 ("irqchip/gic-v4: Fix building with ancient gcc")
> c848c49a62b3 ("drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4")
>
> but they aren't necessarily _exactly_ the same issue.
Yeah, I'm the world expert at working around this gcc bug but the nfs4
one had me stumped when I looked at it, so I shelved it for revisiting
later.
It would be nice to fix it, given that this is the only (known) site in
the kernel which rules out these compiler versions.
next prev parent reply other threads:[~2017-11-30 3:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 2:58 Steven Rostedt
2017-11-30 3:27 ` Linus Torvalds
2017-11-30 3:39 ` Andrew Morton [this message]
2017-11-30 3:44 ` Linus Torvalds
2017-11-30 3:48 ` Andrew Morton
2017-11-30 4:05 ` Steven Rostedt
2017-11-30 11:46 ` Trond Myklebust
2017-11-30 13:05 ` Anna Schumaker
2017-11-30 12:28 ` Arnd Bergmann
2017-11-30 15:55 ` Marc Zyngier
2017-11-30 10:33 ` David Laight
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171129193927.e4248d8a797b90aa03edd0ff@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Anna.Schumaker@netapp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=torvalds@linux-foundation.org \
--cc=trond.myklebust@primarydata.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®