]> git.baikalelectronics.ru Git - kernel.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)
commitb1e9ab79a0fa28bc85607106d7f2a8aff7462e63
treeb511c1a188bad12b4e3b73b4c5c626f2eee35a82
parent0aea769ad7696305f17cc5873da85efd4d579983
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: a1287907419d ("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