[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406456947-3226-1-git-send-email-karoly.kemeny@gmail.com>
Date: Sun, 27 Jul 2014 12:29:07 +0200
From: Karoly Kemeny <karoly.kemeny@...il.com>
To: davem@...emloft.net, netdev@...r.kernel.org
Cc: Karoly Kemeny <karoly.kemeny@...il.com>
Subject: [PATCH v2 net] 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 <karoly.kemeny@...il.com>
---
net/ipv4/ip_sockglue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
index 64741b9..3e4af06 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;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists