Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ixgbevf: Remove unused ixgbevf_hv_mbx_ops

The const struct ixgbevf_hv_mbx_ops was added in 2016 as part of
commit c6d45171d706 ("ixgbevf: Support Windows hosts (Hyper-V)")

but has remained unused.

The functions it references are still referenced elsewhere.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250105122847.27341-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
4ce1aeec 1b960cd1

-13
-1
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
··· 443 443 extern const struct ixgbevf_info ixgbevf_X550_vf_hv_info; 444 444 extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_hv_info; 445 445 extern const struct ixgbevf_info ixgbevf_e610_vf_hv_info; 446 - extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops; 447 446 448 447 /* needed by ethtool.c */ 449 448 extern const char ixgbevf_driver_name[];
-12
drivers/net/ethernet/intel/ixgbevf/mbx.c
··· 505 505 .check_for_ack = ixgbevf_check_for_ack_vf, 506 506 .check_for_rst = ixgbevf_check_for_rst_vf, 507 507 }; 508 - 509 - /* Mailbox operations when running on Hyper-V. 510 - * On Hyper-V, PF/VF communication is not through the 511 - * hardware mailbox; this communication is through 512 - * a software mediated path. 513 - * Most mail box operations are noop while running on 514 - * Hyper-V. 515 - */ 516 - const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops = { 517 - .init_params = ixgbevf_init_mbx_params_vf, 518 - .check_for_rst = ixgbevf_check_for_rst_vf, 519 - };