From: Karoly Kemeny Date: Sun, 27 Jul 2014 10:29:07 +0000 (+0200) Subject: ipv4: clean up cast warning in do_ip_getsockopt X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c54a5e024777a2fd4b01239d58cf119901e8e5ed;p=linux-beck.git ipv4: clean up cast warning in do_ip_getsockopt Sparse warns because of implicit pointer cast. v2: subject line correction, space between "void" and "*" Signed-off-by: Karoly Kemeny Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 64741b938632..5cb830c78990 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -1319,7 +1319,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname, if (sk->sk_type != SOCK_STREAM) return -ENOPROTOOPT; - msg.msg_control = optval; + msg.msg_control = (__force void *) optval; msg.msg_controllen = len; msg.msg_flags = flags;