Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: xenbus_probe_frontend: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 146562
Addresses-Coverity-ID: 146563
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

authored by

Gustavo A. R. Silva and committed by
Boris Ostrovsky
5fa916f7 5e25f5db

+2
+2
drivers/xen/xenbus/xenbus_probe_frontend.c
··· 379 379 case XenbusStateConnected: 380 380 xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateClosing); 381 381 xenbus_reset_wait_for_backend(be, XenbusStateClosing); 382 + /* fall through */ 382 383 383 384 case XenbusStateClosing: 384 385 xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateClosed); 385 386 xenbus_reset_wait_for_backend(be, XenbusStateClosed); 387 + /* fall through */ 386 388 387 389 case XenbusStateClosed: 388 390 xenbus_printf(XBT_NIL, fe, "state", "%d", XenbusStateInitialising);