public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] gfs:remove a warning in gfs2_lookup_by_inum()
@ 2011-04-11  2:42 Weiping Pan(潘卫平)
  2011-04-13 10:11 ` Steven Whitehouse
  0 siblings, 1 reply; 2+ messages in thread
From: Weiping Pan(潘卫平) @ 2011-04-11  2:42 UTC (permalink / raw)
  To: swhiteho; +Cc: cluster-devel, linux-kernel, Weiping Pan 

/home/pwp/mysvn/linux/linux-2.6/fs/gfs2/inode.c: In function
‘gfs2_lookup_by_inum’: /home/pwp/mysvn/linux/linux-2.6/fs/gfs2/inode.c:188:16:
warning: ‘inode’ may be used uninitialized in this function

Signed-off-by: Weiping Pan(潘卫平) <panweiping3@gmail.com>
---
 fs/gfs2/inode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 97d54a2..5b937c6 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -185,7 +185,7 @@ struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
 {
 	struct super_block *sb = sdp->sd_vfs;
 	struct gfs2_holder i_gh;
-	struct inode *inode;
+	struct inode *inode = NULL;
 	int error;
 
 	error = gfs2_glock_nq_num(sdp, no_addr, &gfs2_inode_glops,
-- 
1.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] gfs:remove a warning in gfs2_lookup_by_inum()
  2011-04-11  2:42 [PATCH 1/2] gfs:remove a warning in gfs2_lookup_by_inum() Weiping Pan(潘卫平)
@ 2011-04-13 10:11 ` Steven Whitehouse
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2011-04-13 10:11 UTC (permalink / raw)
  To: Weiping Pan(潘卫平); +Cc: cluster-devel, linux-kernel

Hi,

Thanks for the patch, however a fix for this is already in the GFS2 -nmw
git tree,

Steve.

On Mon, 2011-04-11 at 10:42 +0800, Weiping Pan(潘卫平) wrote:
> /home/pwp/mysvn/linux/linux-2.6/fs/gfs2/inode.c: In function
> ‘gfs2_lookup_by_inum’: /home/pwp/mysvn/linux/linux-2.6/fs/gfs2/inode.c:188:16:
> warning: ‘inode’ may be used uninitialized in this function
> 
> Signed-off-by: Weiping Pan(潘卫平) <panweiping3@gmail.com>
> ---
>  fs/gfs2/inode.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
> index 97d54a2..5b937c6 100644
> --- a/fs/gfs2/inode.c
> +++ b/fs/gfs2/inode.c
> @@ -185,7 +185,7 @@ struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
>  {
>  	struct super_block *sb = sdp->sd_vfs;
>  	struct gfs2_holder i_gh;
> -	struct inode *inode;
> +	struct inode *inode = NULL;
>  	int error;
>  
>  	error = gfs2_glock_nq_num(sdp, no_addr, &gfs2_inode_glops,



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-13 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11  2:42 [PATCH 1/2] gfs:remove a warning in gfs2_lookup_by_inum() Weiping Pan(潘卫平)
2011-04-13 10:11 ` Steven Whitehouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox