All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miao Xie <miaox@cn.fujitsu.com>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: kernel-janitors@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [josef-btrfs:master 9/11] fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitial
Date: Thu, 02 Aug 2012 04:29:21 +0000	[thread overview]
Message-ID: <501A0221.4060204@cn.fujitsu.com> (raw)
In-Reply-To: <20120802023123.GA10533@localhost>

On Thu, 2 Aug 2012 10:31:23 +0800, Fengguang Wu wrote:
> There are new compile warnings show up in
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git master
> head:   8e1163044779e90662e96887cdd692c1594146ad
> commit: dd817e81e81bbb83b63317b169d0e57a5d7ae0e1 [9/11] Btrfs: fix error path in create_pending_snapshot()
> config: x86_64-randconfig-h031 (attached as .config)
> 
> All error/warnings:
> 
> fs/btrfs/transaction.c: In function 'create_pending_snapshot':
> fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitialized in this function [-Wmaybe-uninitialized]
> fs/btrfs/transaction.c:1119:19: warning: 'rsv' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 
> vim +1118 fs/btrfs/transaction.c
>   1115		if (ret)
>   1116			goto abort_trans;
>   1117	fail:
>> 1118		dput(parent);
>   1119		trans->block_rsv = rsv;
>   1120	no_free_objectid:
>   1121		kfree(new_root_item);

The patch I sent before is based on the v3.5.0, not Chris's latest for-linus branch, so...

I will send new patches to fix it. Thanks for your report.

Miao

> 
> ---
> 0-DAY kernel build testing backend         Open Source Technology Centre
> Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation
> 



WARNING: multiple messages have this Message-ID (diff)
From: Miao Xie <miaox@cn.fujitsu.com>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: kernel-janitors@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [josef-btrfs:master 9/11] fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitialized in this function
Date: Thu, 02 Aug 2012 12:29:21 +0800	[thread overview]
Message-ID: <501A0221.4060204@cn.fujitsu.com> (raw)
In-Reply-To: <20120802023123.GA10533@localhost>

On Thu, 2 Aug 2012 10:31:23 +0800, Fengguang Wu wrote:
> There are new compile warnings show up in
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git master
> head:   8e1163044779e90662e96887cdd692c1594146ad
> commit: dd817e81e81bbb83b63317b169d0e57a5d7ae0e1 [9/11] Btrfs: fix error path in create_pending_snapshot()
> config: x86_64-randconfig-h031 (attached as .config)
> 
> All error/warnings:
> 
> fs/btrfs/transaction.c: In function 'create_pending_snapshot':
> fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitialized in this function [-Wmaybe-uninitialized]
> fs/btrfs/transaction.c:1119:19: warning: 'rsv' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 
> vim +1118 fs/btrfs/transaction.c
>   1115		if (ret)
>   1116			goto abort_trans;
>   1117	fail:
>> 1118		dput(parent);
>   1119		trans->block_rsv = rsv;
>   1120	no_free_objectid:
>   1121		kfree(new_root_item);

The patch I sent before is based on the v3.5.0, not Chris's latest for-linus branch, so...

I will send new patches to fix it. Thanks for your report.

Miao

> 
> ---
> 0-DAY kernel build testing backend         Open Source Technology Centre
> Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation
> 



  reply	other threads:[~2012-08-02  4:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02  2:31 [josef-btrfs:master 9/11] fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitialized Fengguang Wu
2012-08-02  2:31 ` [josef-btrfs:master 9/11] fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitialized in this function Fengguang Wu
2012-08-02  4:29 ` Miao Xie [this message]
2012-08-02  4:29   ` Miao Xie
2012-08-02 12:07   ` [josef-btrfs:master 9/11] fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitial Josef Bacik
2012-08-02 12:07     ` [josef-btrfs:master 9/11] fs/btrfs/transaction.c:1118:6: warning: 'parent' may be used uninitialized in this function Josef Bacik

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=501A0221.4060204@cn.fujitsu.com \
    --to=miaox@cn.fujitsu.com \
    --cc=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.