Commit 3f2c9405 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe
Browse files

xen-blkback: Avoid that gcc 7 warns about fall-through when building with W=1



Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarHannes 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: default avatarJens Axboe <axboe@kernel.dk>
parent 306b82a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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);