]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: imm: mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 26 Nov 2018 18:31:53 +0000 (12:31 -0600)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 8 Apr 2019 23:37:37 +0000 (18:37 -0500)
commit9fa29a670bb8e887b40e95d4ce79a8e0d21d47ac
tree223c1043c779ebe6d2b860ba8c74b376820707d4
parent1f7716373901768afa504638a34221236dfb708c
scsi: imm: mark expected switch fall-throughs

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

Notice that, in this particular case, I placed all the "Phase N - ..."
comments on the same line as its corresponding switch case. The same
way in which similar comments appear in drivers/scsi/ppa.c. This makes
it possible to place the "fall through" annotations at the bottom of
each switch case, which is what GCC is expecting to find.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
drivers/scsi/imm.c