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 <hch@lst.de>
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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;