Skip to content

Commit

Permalink
nvmet-fcloop: suppress a compiler warning
Browse files Browse the repository at this point in the history
Building with W=1 enables the compiler warning -Wimplicit-fallthrough=3. That
option does not recognize the fall-through comment in the fcloop driver. Add
a fall-through comment that is recognized for -Wimplicit-fallthrough=3. This
patch avoids that the compiler reports the following warning when building
with W=1:

drivers/nvme/target/fcloop.c:647:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (op == NVMET_FCOP_READDATA)
      ^

Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: James Smart <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
bvanassche authored and Christoph Hellwig committed Oct 17, 2018
1 parent 202359c commit 1216e9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/nvme/target/fcloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ fcloop_fcp_op(struct nvmet_fc_target_port *tgtport,
break;

/* Fall-Thru to RSP handling */
/* FALLTHRU */

case NVMET_FCOP_RSP:
if (fcpreq) {
Expand Down

0 comments on commit 1216e9e

Please sign in to comment.