[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160322095941.GG8095@twin.jikos.cz>
Date: Tue, 22 Mar 2016 10:59:41 +0100
From: David Sterba <dsterba@...e.cz>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Sudip Mukherjee <sudipm.mukherjee@...il.com>,
Chris Mason <clm@...com>, Josef Bacik <jbacik@...com>,
David Sterba <dsterba@...e.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-btrfs <linux-btrfs@...r.kernel.org>
Subject: Re: [PATCH] btrfs: fix build warning
On Tue, Mar 22, 2016 at 10:39:59AM +0100, Geert Uytterhoeven wrote:
> On Tue, Feb 16, 2016 at 9:02 AM, Sudip Mukherjee
> <sudipm.mukherjee@...il.com> wrote:
> > We were getting build warning about:
> > fs/btrfs/extent-tree.c:7021:34: warning: ‘used_bg’ may be used
> > uninitialized in this function
> >
> > It is not a valid warning as used_bg is never used uninitilized since
> > locked is initially false so we can never be in the section where
> > 'used_bg' is used. But gcc is not able to understand that and we can
> > initialize it while declaring to silence the warning.
> >
> > Signed-off-by: Sudip Mukherjee <sudip@...torindia.org>
>
> FWIW, I've posted an alternative patch that killed the silly locked variable
> a while ago.
> "[PATCH] Btrfs: Refactor btrfs_lock_cluster() to kill compiler warning"
> https://lkml.org/lkml/2014/6/22/96
The cleanup looks great, thanks, patch picked.
Powered by blists - more mailing lists