[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141001142559.20b8c87f792bc046cdabd309@linux-foundation.org>
Date: Wed, 1 Oct 2014 14:25:59 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Vlastimil Babka <vbabka@...e.cz>
Cc: David Rientjes <rientjes@...gle.com>,
Xiubo Li <Li.Xiubo@...escale.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, mgorman@...e.de, minchan@...nel.org,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] mm, compaction: using uninitialized_var insteads
setting 'flags' to 0 directly.
On Wed, 01 Oct 2014 23:18:42 +0200 Vlastimil Babka <vbabka@...e.cz> wrote:
> On 10/01/2014 10:16 PM, David Rientjes wrote:
> >> On 09/29/2014 05:30 AM, Xiubo Li wrote:
> >> > Setting 'flags' to zero will be certainly a misleading way to avoid
> >> > warning of 'flags' may be used uninitialized. uninitialized_var is
> >> > a correct way because the warning is a false possitive.
> >>
> >> Agree.
> >>
> >> > Signed-off-by: Xiubo Li <Li.Xiubo@...escale.com>
> >>
> >> Acked-by: Vlastimil Babka <vbabka@...e.cz>
> >>
> >
> > I thought we just discussed this when
> > mm-compaction-fix-warning-of-flags-may-be-used-uninitialized.patch was
> > merged and, although I liked it, it was stated that we shouldn't add any
> > new users of uninitialized_var().
>
> Yeah but that discussion wasn't unfortunately CC'd on mailing lists. And my
> interpretation of the outcome is that maybe we should try :)
>
https://lkml.org/lkml/2012/10/27/71
I disagree, can't be bothered getting into a fight over it. I do tend
to accidentally let new uses sneak into the tree, but this one is a bit
obvious.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists