OSDN Git Service

bpfilter: fix up a sparse annotation
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jul 2020 06:08:43 +0000 (08:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jul 2020 22:41:53 +0000 (15:41 -0700)
commite024e008186bf9f4109c86b66dd60d0f926bc1fb
tree601b446be8e685655c04d3436914b10f8a26def5
parent197569f72a1a3512ef294bae68d100d613f38f6a
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 <hch@lst.de>
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bpfilter/bpfilter_kern.c