xen-blkback: Avoid that gcc 7 warns about fall-through when building with W=1
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>
This commit is contained in:
parent
306b82a806
commit
3f2c9405fa
2 changed files with 3 additions and 1 deletions
|
@ -1251,6 +1251,7 @@ static int dispatch_rw_block_io(struct xen_blkif_ring *ring,
|
||||||
break;
|
break;
|
||||||
case BLKIF_OP_WRITE_BARRIER:
|
case BLKIF_OP_WRITE_BARRIER:
|
||||||
drain = true;
|
drain = true;
|
||||||
|
/* fall through */
|
||||||
case BLKIF_OP_FLUSH_DISKCACHE:
|
case BLKIF_OP_FLUSH_DISKCACHE:
|
||||||
ring->st_f_req++;
|
ring->st_f_req++;
|
||||||
operation = REQ_OP_WRITE;
|
operation = REQ_OP_WRITE;
|
||||||
|
|
|
@ -810,7 +810,8 @@ static void frontend_changed(struct xenbus_device *dev,
|
||||||
xenbus_switch_state(dev, XenbusStateClosed);
|
xenbus_switch_state(dev, XenbusStateClosed);
|
||||||
if (xenbus_dev_is_online(dev))
|
if (xenbus_dev_is_online(dev))
|
||||||
break;
|
break;
|
||||||
/* fall through if not online */
|
/* fall through */
|
||||||
|
/* if not online */
|
||||||
case XenbusStateUnknown:
|
case XenbusStateUnknown:
|
||||||
/* implies xen_blkif_disconnect() via xen_blkbk_remove() */
|
/* implies xen_blkif_disconnect() via xen_blkbk_remove() */
|
||||||
device_unregister(&dev->dev);
|
device_unregister(&dev->dev);
|
||||||
|
|
Loading…
Reference in a new issue