Re: [PATCH] Silence compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok. I committed the cleanup patch I sent on this thread and pushed it out yesterday.
This warning should now be gone.
Benny
------Original Message------
From: Stanislav Kinsbursky
To: Jim Rees
Cc: Benny Halevy
Cc: linux-nfs@xxxxxxxxxxxxxxx
Subject: Re: [PATCH] Silence compiler warning
Sent: Oct 18, 2011 02:50

I have this warning also:
fs/nfs/callback_proc.c:116: warning: ‘ino’ may be used uninitialized in this 
function

17.10.2011 04:06, Jim Rees пишет:
> fs/nfs/callback_proc.c: In function ‘do_callback_layoutrecall’:
> fs/nfs/callback_proc.c:115:26: warning: ‘lo’ may be used uninitialized in this function
>
> No functional change. If no layout is found, we'll return before  using
> "lo".
>
> Signed-off-by: Jim Rees<rees@xxxxxxxxx>
> ---
>   fs/nfs/callback_proc.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
> index 43926ad..93633f1 100644
> --- a/fs/nfs/callback_proc.c
> +++ b/fs/nfs/callback_proc.c
> @@ -112,7 +112,7 @@ static u32 initiate_file_draining(struct nfs_client *clp,
>   				  struct cb_layoutrecallargs *args)
>   {
>   	struct nfs_server *server;
> -	struct pnfs_layout_hdr *lo;
> +	struct pnfs_layout_hdr *lo = NULL;
>   	struct inode *ino;
>   	bool found = false;
>   	u32 rv = NFS4ERR_NOMATCHING_LAYOUT;


-- 
Best regards,
Stanislav Kinsbursky

��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux