From: H Hartley Sweeten Date: Fri, 15 Jan 2010 09:08:58 +0000 (-0800) Subject: net/core/sock.c: quiet sparse noise X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d0392be21d4710121f855c0caf57d32ffd1ced0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 * Quiet the warning by changing the type of 'lv' to an int. Signed-off-by: H Hartley Sweeten Signed-off-by: David S. Miller --- diff --git a/net/core/sock.c b/net/core/sock.c index e1f6f225f012..10b1d3243a72 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -741,7 +741,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname, struct timeval tm; } v; - unsigned int lv = sizeof(int); + int lv = sizeof(int); int len; if (get_user(len, optlen))