[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140618183058.GC11042@htj.dyndns.org>
Date: Wed, 18 Jun 2014 14:30:58 -0400
From: Tejun Heo <tj@...nel.org>
To: David Laight <David.Laight@...LAB.COM>
Cc: 'Alexei Starovoitov' <alexei.starovoitov@...il.com>,
Daniel Borkmann <dborkman@...hat.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-sctp@...r.kernel.org" <linux-sctp@...r.kernel.org>
Subject: Re: [PATCH net-next 5/5] net: sctp: fix incorrect type in gfp
initializer
On Thu, Jun 12, 2014 at 08:46:44AM +0000, David Laight wrote:
> I was slightly worried it might generate the boolean value - something
> that you really don't want it to do.
I don't think gcc is that stupid at this point.
> I only looked at the output for the old version.
> The compiler seemed to have converted:
> if (preload)
> x();
> y;
> if (preload)
> z();
> into:
> if (preload) {
> x(); y; z();
> } else {
> y;
> }
> and then found out that z() was empty, leaving two copies of y().
So, nothing wrong, right?
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists