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

From: Jeff Layton <[email-masked]>
Date: Thu, 20 Jan 2011 20:20:50 -0500

On Fri, 21 Jan 2011 12:05:24 +1100
Stephen Rothwell <[email-masked]> wrote:

> Hi all,
> 
> After merging the cifs tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
> 
> fs/cifs/cifssmb.c: In function 'CIFSSMBEcho':
> fs/cifs/cifssmb.c:740: warning: large integer implicitly truncated to unsigned type
> 
> Introduced by commit 766fdbb57fdb1e53bc34c431103e95383d7f13ba ("cifs: add
> ability to send an echo request").
> 

Oh duh -- <forehead slap>...

        smb->hdr.WordCount = cpu_to_le16(1);

...and WordCount is u8. I'll send Steve a fix tomorrow...

-- 
Jeff Layton <[email-masked]>