Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ppa: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 114988
Addresses-Coverity-ID: 114989
Addresses-Coverity-ID: 114990
Addresses-Coverity-ID: 114991
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Gustavo A. R. Silva and committed by
Martin K. Petersen
2c798236 f35cb48e

+4
+4
drivers/scsi/ppa.c
··· 724 724 return 0; 725 725 } 726 726 cmd->SCp.phase++; 727 + /* fall through */ 727 728 728 729 case 3: /* Phase 3 - Ready to accept a command */ 729 730 w_ctr(ppb, 0x0c); ··· 734 733 if (!ppa_send_command(cmd)) 735 734 return 0; 736 735 cmd->SCp.phase++; 736 + /* fall through */ 737 737 738 738 case 4: /* Phase 4 - Setup scatter/gather buffers */ 739 739 if (scsi_bufflen(cmd)) { ··· 748 746 } 749 747 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; 750 748 cmd->SCp.phase++; 749 + /* fall through */ 751 750 752 751 case 5: /* Phase 5 - Data transfer stage */ 753 752 w_ctr(ppb, 0x0c); ··· 761 758 if (retv == 0) 762 759 return 1; 763 760 cmd->SCp.phase++; 761 + /* fall through */ 764 762 765 763 case 6: /* Phase 6 - Read status/message */ 766 764 cmd->result = DID_OK << 16;