Fixes: 8e79cd30230d ("common/sfc_efx/base: implement PHY link control for 
Medford4")
Fixes: f2f77453cb9f ("common/sfc_efx/base: fill in software LUT for MAC 
statistics")
Cc: sta...@dpdk.org

Suggested-by: Andy Moreton <andy.more...@amd.com>
Signed-off-by: Ivan Malov <ivan.ma...@arknetworks.am>
---
 drivers/common/sfc_efx/base/efx_np.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/common/sfc_efx/base/efx_np.c 
b/drivers/common/sfc_efx/base/efx_np.c
index d7692fdba7..222d81c12e 100644
--- a/drivers/common/sfc_efx/base/efx_np.c
+++ b/drivers/common/sfc_efx/base/efx_np.c
@@ -750,7 +750,7 @@ efx_np_stat_describe(
        return;
 
 found:
-       if (sw_id >= lut_nentries) {
+       if ((unsigned int)sw_id >= lut_nentries) {
                /*
                 * Static mapping size and the size of lookup
                 * table are out-of-sync. Should never happen.
@@ -1383,7 +1383,7 @@ efx_np_link_ctrl(
        }
 
        EFSYS_ASSERT(cap_enum_hw <= UINT8_MAX);
-       fec = cap_enum_hw;
+       fec = (uint8_t)cap_enum_hw;
 
        MCDI_IN_SET_WORD(req, LINK_CTRL_IN_LINK_TECHNOLOGY, link_tech);
        MCDI_IN_SET_DWORD(req, LINK_CTRL_IN_CONTROL_FLAGS, flags);
-- 
2.39.5

Reply via email to