xen-blkback: Avoid that gcc 7 warns about fall-through when building with W=1
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 23:23:10 +0000 (16:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:36:58 +0000 (08:36 -0600)
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Roger Pau Monn303251 <roger.pau@citrix.com>
Cc: xen-devel@lists.xenproject.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/xenbus.c

index 68157a84bf4d8da128defe9d84e5e59898341927..5f3a813e7ae0af7de7e0e7b110cb6703b365ab20 100644 (file)
@@ -1251,6 +1251,7 @@ static int dispatch_rw_block_io(struct xen_blkif_ring *ring,
                break;
        case BLKIF_OP_WRITE_BARRIER:
                drain = true;
+               /* fall through */
        case BLKIF_OP_FLUSH_DISKCACHE:
                ring->st_f_req++;
                operation = REQ_OP_WRITE;
index 792da683e70dafafa6f69e224b8e57272d3e6be1..88eaea6475d72ac221f0bca5bcb337ea4341aad8 100644 (file)
@@ -810,7 +810,8 @@ static void frontend_changed(struct xenbus_device *dev,
                xenbus_switch_state(dev, XenbusStateClosed);
                if (xenbus_dev_is_online(dev))
                        break;
-               /* fall through if not online */
+               /* fall through */
+               /* if not online */
        case XenbusStateUnknown:
                /* implies xen_blkif_disconnect() via xen_blkbk_remove() */
                device_unregister(&dev->dev);