OSDN Git Service

scsi: ufs: add fall through annotation
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 26 Nov 2018 08:10:34 +0000 (10:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Nov 2018 02:34:44 +0000 (21:34 -0500)
Add /* fallthrough */ annotation, to eliminate compilation warning:
warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c

index 3807efd..b15f5da 100644 (file)
@@ -1549,6 +1549,7 @@ start:
                 * currently running. Hence, fall through to cancel gating
                 * work and to enable clocks.
                 */
+               /* fallthrough */
        case CLKS_OFF:
                ufshcd_scsi_block_requests(hba);
                hba->clk_gating.state = REQ_CLKS_ON;
@@ -1560,6 +1561,7 @@ start:
                 * fall through to check if we should wait for this
                 * work to be done or not.
                 */
+               /* fallthrough */
        case REQ_CLKS_ON:
                if (async) {
                        rc = -EAGAIN;
@@ -4618,6 +4620,7 @@ ufshcd_scsi_cmd_status(struct ufshcd_lrb *lrbp, int scsi_status)
        switch (scsi_status) {
        case SAM_STAT_CHECK_CONDITION:
                ufshcd_copy_sense_data(lrbp);
+               /* fallthrough */
        case SAM_STAT_GOOD:
                result |= DID_OK << 16 |
                          COMMAND_COMPLETE << 8 |