]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-fcloop: suppress a compiler warning
authorBart Van Assche <bvanassche@acm.org>
Wed, 10 Oct 2018 15:08:20 +0000 (08:08 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Oct 2018 06:58:31 +0000 (08:58 +0200)
commit1490b58f301ad948fcb8da9bd37de3f5a0372968
tree7dd3f897b8f7f9e028a5c1177e8dff0fee49e2a6
parent93c6d089facb50eb8840f5be3a7486b27e8e4c8b
nvmet-fcloop: suppress a compiler warning

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 <bvanassche@acm.org>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fcloop.c