xen/pvcalls-front: mark expected switch fall-through
PATCH 1/1 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.
--- drivers/xen/pvcalls-front.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/xen/pvcalls-front.c +2 -1
@@ -1250,7 +1250,8 @@ static void pvcalls_front_changed(struct xenbus_device *dev,case XenbusStateClosed:if (dev->state == XenbusStateClosed)break ; -/* Missed the backend's CLOSING state -- fallthrough */ +/* Missed the backend's CLOSING state */ +/* fall through */ case XenbusStateClosing:xenbus_frontend_closed (dev);break ;
Signature · 1 line
2.7.4
Quoted 7 lines · Gustavo A. R. Silva
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 <[email protected]>
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 7 lines · Gustavo A. R. Silva
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 <[email protected]>
Juergen
Boris Ostrovsky
AppliedQuoted 9 lines · Juergen Gross
Quoted 7 lines · Gustavo A. R. Silva
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 <[email protected]>Reviewed-by Juergen Gross <[email protected]>
Applied to for-linus-4.15.
-boris
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel