]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ionic: replace set_vf data with union
authorShannon Nelson <snelson@pensando.io>
Mon, 24 Jan 2022 18:53:12 +0000 (10:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 11:15:09 +0000 (11:15 +0000)
commit36197d8297834c628a647414a5b9787aea6cec60
treeb511c1a188bad12b4e3b73b4c5c626f2eee35a82
parentec8ee714736e6b975b45b896ab66bbfa48fbe3d8
ionic: replace set_vf data with union

This (ab)use of a data buffer made some static code checkers
rather itchy, so we replace the a generic data buffer with
the union in the struct ionic_vf_setattr_cmd.

Fixes: fbb39807e9ae ("ionic: support sr-iov operations")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
drivers/net/ethernet/pensando/ionic/ionic_dev.c
drivers/net/ethernet/pensando/ionic/ionic_dev.h
drivers/net/ethernet/pensando/ionic/ionic_lif.c