mirror of
https://github.com/opnsense/src.git
synced 2026-06-22 15:11:03 -04:00
This fixes a clang 19 warning:
sys/dev/iavf/iavf_lib.c:514:39: error: comparison of different enumeration types ('enum virtchnl_vsi_type' and 'enum iavf_vsi_type') [-Werror,-Wenum-compare]
514 | if (sc->vf_res->vsi_res[i].vsi_type == IAVF_VSI_SRIOV)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
The `vsi_type` field of `struct virtchnl_vsi_resource` is of type `enum
virtchnl_vsi_type`, not `enum iavf_vsi_type`. In this case, we can
seamlessly replace the value with `VIRTCHNL_VSI_SRIOV`, which is
numerically equal to `IAVF_VSI_SRIOV`.
MFC after: 3 days
|
||
|---|---|---|
| .. | ||
| iavf_adminq.c | ||
| iavf_adminq.h | ||
| iavf_adminq_cmd.h | ||
| iavf_alloc.h | ||
| iavf_common.c | ||
| iavf_debug.h | ||
| iavf_devids.h | ||
| iavf_drv_info.h | ||
| iavf_iflib.h | ||
| iavf_lib.c | ||
| iavf_lib.h | ||
| iavf_opts.h | ||
| iavf_osdep.c | ||
| iavf_osdep.h | ||
| iavf_prototype.h | ||
| iavf_register.h | ||
| iavf_status.h | ||
| iavf_sysctls_common.h | ||
| iavf_sysctls_iflib.h | ||
| iavf_txrx_common.h | ||
| iavf_txrx_iflib.c | ||
| iavf_type.h | ||
| iavf_vc_common.c | ||
| iavf_vc_common.h | ||
| iavf_vc_iflib.c | ||
| if_iavf_iflib.c | ||
| virtchnl.h | ||