Re: linux-next: build warning after merge of the cifs tree

Previous thread: linux-next: build warning after merge of the cifs tree by Stephen Rothwell on Thursday, September 23, 2010 - 8:48 pm. (2 messages)

Next thread: linux-next: build warning after merge of the tty tree by Stephen Rothwell on Thursday, September 23, 2010 - 9:03 pm. (2 messages)
From: Stephen Rothwell
Date: Thursday, September 23, 2010 - 8:55 pm

Hi all,

After merging the irqflags tree, today's linux-next build (powerpc
ppc64_defconfig) produced this warning:

fs/cifs/sess.c: In function 'CIFS_SessSetup':
fs/cifs/sess.c:595: warning: unused variable 'blob_len'

Introduced by commit 15f6bdfb9914b0c41848f874719911ba053be931 ("cifs
NTLMv2/NTLMSSP ntlmv2 within ntlmssp autentication code").
CONFIG_CIFS_UPCALL is not set in this build.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
From: Stephen Rothwell
Date: Monday, October 18, 2010 - 10:21 pm

Hi Steve,


I am still getting this ...

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
From: Jeff Layton
Date: Tuesday, October 19, 2010 - 6:13 am

On Tue, 19 Oct 2010 16:21:20 +1100

Yep. Looks clearly broken. blob_len is also declared twice in that
function which is just plain wrong. What probably makes the most sense
is to make it a u16 and get rid of the second declaration lower in the
function. But, there's another semi-related problem here too...

blob_len gets assigned the return value of build_ntlmssp_auth_blob.
That function however doesn't have any mechanism to pass back an
error, even though it calls setup_ntlmv2_rsp and that function can
return one.

The whole house of cards needs a bit of rework I think...

Shirish, since you're already doing work in this area, can you fix that
too?

Thanks,
-- 
Jeff Layton <jlayton@samba.org>
--

From: Shirish Pargaonkar
Date: Tuesday, October 19, 2010 - 8:48 am

Looking into it.
--

Previous thread: linux-next: build warning after merge of the cifs tree by Stephen Rothwell on Thursday, September 23, 2010 - 8:48 pm. (2 messages)

Next thread: linux-next: build warning after merge of the tty tree by Stephen Rothwell on Thursday, September 23, 2010 - 9:03 pm. (2 messages)