diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-02 19:51:22 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-11-03 16:37:29 +0100 |
commit | 3d8765d4f52a0050343bfa99a1a2aa5ef7d841e5 (patch) | |
tree | 7ad6e3545f816b9c9b68930eb309dee6db902d96 | |
parent | xen: xenbus_probe_frontend: mark expected switch fall-throughs (diff) | |
download | linux-3d8765d4f52a0050343bfa99a1a2aa5ef7d841e5.tar.xz linux-3d8765d4f52a0050343bfa99a1a2aa5ef7d841e5.zip |
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>
-rw-r--r-- | drivers/xen/pvcalls-front.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c index 0c1ec6894cc4..ed94ea0b4b8e 100644 --- a/drivers/xen/pvcalls-front.c +++ b/drivers/xen/pvcalls-front.c @@ -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; |