From: Alan Cox Date: Mon, 10 Jul 2006 21:24:23 +0000 (-0700) Subject: [DCCP]: Fix sparse warnings. X-Git-Tag: v2.6.18-rc2~117^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9faefb6d41f770e9cebad0fa180e7e78ef861211;p=linux-2.6-omap-h63xx.git [DCCP]: Fix sparse warnings. No actual bugs that I can see just a couple of unmarked casts getting annoying in my debug log files. Signed-off-by: Alan Cox Signed-off-by: David S. Miller --- diff --git a/net/dccp/proto.c b/net/dccp/proto.c index f4f0627ea41..6f14bb5a28d 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c @@ -484,7 +484,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname, err = -EINVAL; else err = dccp_setsockopt_change(sk, DCCPO_CHANGE_L, - (struct dccp_so_feat *) + (struct dccp_so_feat __user *) optval); break; @@ -493,7 +493,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname, err = -EINVAL; else err = dccp_setsockopt_change(sk, DCCPO_CHANGE_R, - (struct dccp_so_feat *) + (struct dccp_so_feat __user *) optval); break;