lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-next: build warning after merge of the cifs tree
On Fri, 21 Jan 2011 12:05:24 +1100
Stephen Rothwell <sfr@canb.auug.org.au> 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 <jlayton@redhat.com>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-01-21 02:21    [W:0.022 / U:34.976 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site