From: Christoph Hellwig Date: Thu, 23 Jul 2020 06:08:43 +0000 (+0200) Subject: bpfilter: fix up a sparse annotation X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e024e008186bf9f4109c86b66dd60d0f926bc1fb;p=uclinux-h8%2Flinux.git bpfilter: fix up a sparse annotation The __user doesn't make sense when casting to an integer type, just switch to a uintptr_t cast which also removes the need for the __force. Signed-off-by: Christoph Hellwig Reviewed-by: Luc Van Oostenryck Signed-off-by: David S. Miller --- diff --git a/net/bpfilter/bpfilter_kern.c b/net/bpfilter/bpfilter_kern.c index 2c31e82cb953..3bac5820062a 100644 --- a/net/bpfilter/bpfilter_kern.c +++ b/net/bpfilter/bpfilter_kern.c @@ -44,7 +44,7 @@ static int __bpfilter_process_sockopt(struct sock *sk, int optname, req.is_set = is_set; req.pid = current->pid; req.cmd = optname; - req.addr = (long __force __user)optval; + req.addr = (uintptr_t)optval; req.len = optlen; if (!bpfilter_ops.info.tgid) goto out;