Project

General

Profile

Actions

Bug #9607

closed

qede: this statement may fall through

Added by Toomas Soome over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-06-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Issue found by gcc 7 build:

    ../../common/io/qede/579xx/drivers/ecore/ecore_dev.c: In function 'ecore_hw_init':
    ../../common/io/qede/579xx/drivers/ecore/ecore_dev.c:2219:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
        if (rc != ECORE_SUCCESS)
           ^
    ../../common/io/qede/579xx/drivers/ecore/ecore_dev.c:2222:3: note: here
       case FW_MSG_CODE_DRV_LOAD_PORT:
       ^~~~
    ../../common/io/qede/579xx/drivers/ecore/ecore_dev.c:2225:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
        if (rc != ECORE_SUCCESS)
           ^
    ../../common/io/qede/579xx/drivers/ecore/ecore_dev.c:2228:3: note: here
       case FW_MSG_CODE_DRV_LOAD_FUNCTION:
       ^~~~

    ../../common/io/qede/579xx/drivers/ecore/ecore_cxt.c: In function 'ecore_cxt_set_pf_params':
    ../../common/io/qede/579xx/drivers/ecore/ecore_cxt.c:2229:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
       ecore_rdma_set_pf_params(p_hwfn,
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           &p_hwfn->pf_params.rdma_pf_params,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           rdma_tasks);
           ~~~~~~~~~~~
    ../../common/io/qede/579xx/drivers/ecore/ecore_cxt.c:2235:2: note: here
      case ECORE_PCI_ETH:
      ^~~~

    cc1: all warnings being treated as errors

Insert FALLTHROUGH silencers.

Actions

Also available in: Atom PDF