Browse Source

xen/pvcalls-front: mark expected switch fall-through

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

Notice that in this particular case I placed the "fall through" comment
on its own line, which is what GCC is expecting to find.

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>
Gustavo A. R. Silva 7 years ago
parent
commit
3d8765d4f5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/xen/pvcalls-front.c

+ 2 - 1
drivers/xen/pvcalls-front.c

@@ -1250,7 +1250,8 @@ static void pvcalls_front_changed(struct xenbus_device *dev,
 	case XenbusStateClosed:
 	case XenbusStateClosed:
 		if (dev->state == XenbusStateClosed)
 		if (dev->state == XenbusStateClosed)
 			break;
 			break;
-		/* Missed the backend's CLOSING state -- fallthrough */
+		/* Missed the backend's CLOSING state */
+		/* fall through */
 	case XenbusStateClosing:
 	case XenbusStateClosing:
 		xenbus_frontend_closed(dev);
 		xenbus_frontend_closed(dev);
 		break;
 		break;