lkml.org 
[lkml]   [2010]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net/core/sock.c: quiet sparse noise
From
From: H Hartley Sweeten <hartleys@visionengravers.com>
Date: Thu, 14 Jan 2010 17:21:45 -0700

> net/core/sock.c: quiet sparse noise
>
> In sock_getsockopt the symbol 'lv' is declared as an
> unsigned int type, probably due to sizeof returning a
> size_t which is really an unsigned int.
>
> This produces a sparse warning for SO_PEERNAME due to
> the sock->ops->getname() call:
>
> warning: incorrect type in argument 3 (different signedness)
> expected int *sockaddr_len
> got unsigned int *<noident>
>
> Quiet the warning my changing the type of 'lv' to an int.
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

Applied to net-next-2.6, thanks.


\
 
 \ /
  Last update: 2010-01-15 10:11    [W:0.028 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site