FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 04-13-2011, 10:11 AM
Steven Whitehouse
 
Default gfs:remove a warning in gfs2_lookup_by_inum()

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,
 

Thread Tools




All times are GMT. The time now is 07:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org