Re: [GIT PULL] Btrfs updates

From: Chris Mason
Date: Fri Jun 15 2012 - 20:33:55 EST


On Fri, Jun 15, 2012 at 05:57:42PM -0600, Linus Torvalds wrote:
> On Fri, Jun 15, 2012 at 11:09 AM, Chris Mason <chris.mason@xxxxxxxxxxxx> wrote:
> >
> > Please pull my for-linus branch:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus
>
> This seems to introduce a new warning:
>
> In file included from fs/btrfs/ctree.c:22:0:
> fs/btrfs/ctree.c: In function âbtrfs_search_old_slotâ:
> fs/btrfs/ctree.h:2117:240: warning: âold_generationâ may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> fs/btrfs/ctree.c:1178:6: note: âold_generationâ was declared here
>
> which looks like just gcc being unable to see that it is only used
> when set, but it's still annoying. I'd suggest initializing it to 0
> just to shut up the compiler. Ok?
>

Yes, this does look like noise. It is only used when old_root is set,
but it'll be really easy to add bugs there later.

I've pushed two commits out, the second one is a printk cast on 32 bit
machines. Neither of these are fatal but they are in for-linus:

git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus

Chris Mason (2) commits (+3/-2):
Btrfs: cast devid to unsigned long long for printk %llu (+2/-1)
Btrfs: init old_generation in get_old_root (+1/-1)

Total: (2) commits (+3/-2)

fs/btrfs/ctree.c | 2 +-
fs/btrfs/ioctl.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/