git: be909a79a8e2 - main - qlnx: Fix a couple of type mismatches in function declarations

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 15 Nov 2023 02:37:51 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=be909a79a8e2506b49ed81f9bd8115512dd613a4

commit be909a79a8e2506b49ed81f9bd8115512dd613a4
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-11-15 02:37:06 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-11-15 02:37:06 +0000

    qlnx: Fix a couple of type mismatches in function declarations
    
    Reported by:    GCC 13 via -Wenum-int-mismatch
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D42586
---
 sys/dev/qlnx/qlnxe/ecore_l2.c    | 6 ++++--
 sys/dev/qlnx/qlnxe/ecore_sriov.c | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/sys/dev/qlnx/qlnxe/ecore_l2.c b/sys/dev/qlnx/qlnxe/ecore_l2.c
index 487b56629009..ee7d225540d0 100644
--- a/sys/dev/qlnx/qlnxe/ecore_l2.c
+++ b/sys/dev/qlnx/qlnxe/ecore_l2.c
@@ -2240,7 +2240,8 @@ ecore_configure_rfs_ntuple_filter(struct ecore_hwfn *p_hwfn,
 	return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
 }
 
-int ecore_get_rxq_coalesce(struct ecore_hwfn *p_hwfn,
+enum _ecore_status_t
+ecore_get_rxq_coalesce(struct ecore_hwfn *p_hwfn,
 			   struct ecore_ptt *p_ptt,
 			   struct ecore_queue_cid *p_cid,
 			   u16 *p_rx_coal)
@@ -2275,7 +2276,8 @@ int ecore_get_rxq_coalesce(struct ecore_hwfn *p_hwfn,
 	return ECORE_SUCCESS;
 }
 
-int ecore_get_txq_coalesce(struct ecore_hwfn *p_hwfn,
+enum _ecore_status_t
+ecore_get_txq_coalesce(struct ecore_hwfn *p_hwfn,
 			   struct ecore_ptt *p_ptt,
 			   struct ecore_queue_cid *p_cid,
 			   u16 *p_tx_coal)
diff --git a/sys/dev/qlnx/qlnxe/ecore_sriov.c b/sys/dev/qlnx/qlnxe/ecore_sriov.c
index 65df523bb83e..e1198f91e497 100644
--- a/sys/dev/qlnx/qlnxe/ecore_sriov.c
+++ b/sys/dev/qlnx/qlnxe/ecore_sriov.c
@@ -4925,7 +4925,7 @@ bool ecore_iov_is_vf_started(struct ecore_hwfn *p_hwfn,
 }
 #endif
 
-enum _ecore_status_t
+int
 ecore_iov_get_vf_min_rate(struct ecore_hwfn *p_hwfn, int vfid)
 {
 	struct ecore_wfq_data *vf_vp_wfq;