OSDN Git Service

openvswitch: fix sparse warning incorrect type
authorMark Gray <mark.d.gray@redhat.com>
Fri, 23 Jul 2021 14:24:14 +0000 (10:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 10:48:43 +0000 (11:48 +0100)
commit076999e460279cec45c4653513a4f3121fe236d7
tree5b957e62aff0837743fa3314e8d93d517c12fd79
parent784dcfa56e0453bb197601ba0b8196f6f892ebcb
openvswitch: fix sparse warning incorrect type

fix incorrect type in argument 1 (different address spaces)

../net/openvswitch/datapath.c:169:17: warning: incorrect type in argument 1 (different address spaces)
../net/openvswitch/datapath.c:169:17:    expected void const *
../net/openvswitch/datapath.c:169:17:    got struct dp_nlsk_pids [noderef] __rcu *upcall_portids

Found at: https://patchwork.kernel.org/project/netdevbpf/patch/20210630095350.817785-1-mark.d.gray@redhat.com/#24285159

Signed-off-by: Mark Gray <mark.d.gray@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c