scsi: ufs: add fall through annotation
PATCH 1/1 scsi: ufs: add fall through annotation
Add /* fallthrough */ annotation, to eliminate compilation warning:
warning: this statement may fall through [-Wimplicit-fallthrough=]
--- drivers/scsi/ufs/ufshcd.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/scsi/ufs/ufshcd.c +3 -0
@@ -1549,6 +1549,7 @@ int ufshcd_hold(struct ufs_hba *hba, bool async)* 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 @@ int ufshcd_hold(struct ufs_hba *hba, bool async)* 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 |
Signature · 1 line
2.17.2
Quoted 10 lines
-----Original Message-----
From: Tomas Winkler <[email protected]>
Sent: Monday, November 26, 2018 10:11 AM
To: James E . J . Bottomley <[email protected]>; Martin K . Petersen <[email protected]>; Vinayak Holikatti <[email protected]>; Avri Altman <[email protected]>
Cc: [email protected]; [email protected]; Tomas Winkler <[email protected]>
Subject: [PATCH] scsi: ufs: add fall through annotation
Quoted 4 lines
Add /* fallthrough */ annotation, to eliminate compilation warning:
warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Tomas Winkler <[email protected]>
Martin K. Petersen
AppliedTomas,
Quoted 2 lines
Add /* fallthrough */ annotation, to eliminate compilation warning:
warning: this statement may fall through [-Wimplicit-fallthrough=]
Applied to 4.20/scsi-fixes, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering