[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120427.014848.764959411706970704.davem@davemloft.net>
Date: Fri, 27 Apr 2012 01:48:48 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: cleanups in sock_setsockopt()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 27 Apr 2012 07:41:59 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> Use min()/max() macros, reformat two comments, use !!test_bit() to
> match !!sock_flag()
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Introduces warnings:
net/core/sock.c: In function ‘sock_setsockopt’:
net/core/sock.c:584:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]
net/core/sock.c:605:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]
net/core/sock.c:623:19: warning: comparison of distinct pointer types lacks a cast [enabled by default]
and that makes sense since int is signed and __u32 is not.
Your compiler didn't spit that out too?
Powered by blists - more mailing lists