Skip to content

Commit

Permalink
qlnx: Fix a couple of type mismatches in function declarations
Browse files Browse the repository at this point in the history
Reported by:	GCC 13 via -Wenum-int-mismatch
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D42586
  • Loading branch information
bsdjhb committed Nov 15, 2023
1 parent 7aa5b2a commit be909a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions sys/dev/qlnx/qlnxe/ecore_l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sys/dev/qlnx/qlnxe/ecore_sriov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be909a7

Please sign in to comment.