Following patch will hide that typedef. There seems to be no strong reason for hyperv to use it, so let's not. Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> --- CC: kys@xxxxxxxxxxxxx CC: haiyangz@xxxxxxxxxxxxx CC: sthemmin@xxxxxxxxxxxxx CC: wei.liu@xxxxxxxxxx CC: decui@xxxxxxxxxxxxx CC: pabeni@xxxxxxxxxx CC: ast@xxxxxxxxxx CC: daniel@xxxxxxxxxxxxx CC: andrii@xxxxxxxxxx CC: kafai@xxxxxx CC: songliubraving@xxxxxx CC: yhs@xxxxxx CC: john.fastabend@xxxxxxxxx CC: kpsingh@xxxxxxxxxx CC: hawk@xxxxxxxxxx CC: linux-hyperv@xxxxxxxxxxxxxxx CC: bpf@xxxxxxxxxxxxxxx --- drivers/net/hyperv/netvsc_bpf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/hyperv/netvsc_bpf.c b/drivers/net/hyperv/netvsc_bpf.c index 7856905414eb..232c4a0efd7b 100644 --- a/drivers/net/hyperv/netvsc_bpf.c +++ b/drivers/net/hyperv/netvsc_bpf.c @@ -137,7 +137,6 @@ int netvsc_xdp_set(struct net_device *dev, struct bpf_prog *prog, int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) { struct netdev_bpf xdp; - bpf_op_t ndo_bpf; int ret; ASSERT_RTNL(); @@ -145,8 +144,7 @@ int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) if (!vf_netdev) return 0; - ndo_bpf = vf_netdev->netdev_ops->ndo_bpf; - if (!ndo_bpf) + if (!vf_netdev->netdev_ops->ndo_bpf) return 0; memset(&xdp, 0, sizeof(xdp)); @@ -157,7 +155,7 @@ int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) xdp.command = XDP_SETUP_PROG; xdp.prog = prog; - ret = ndo_bpf(vf_netdev, &xdp); + ret = vf_netdev->netdev_ops->ndo_bpf(vf_netdev, &xdp); if (ret && prog) bpf_prog_put(prog); -- 2.34.1