PM / QoS: mark expected switch fall-throughs
Subsystems (2)
PATCH 1/1 PM / QoS: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
---
This code was compiled with GCC 7.3.0
kernel/power/qos.c | 2 ++ 1 file changed, 2 insertions(+)
kernel/power/qos.c +2 -0
@@ -295,6 +295,7 @@ int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,* changed */ plist_del (node, &c->list); +/* fall through */ case PM_QOS_ADD_REQ :plist_node_init (node, new_value);plist_add (node, &c->list);
@@ -367,6 +368,7 @@ bool pm_qos_update_flags(struct pm_qos_flags *pqf,break ;case PM_QOS_UPDATE_REQ :pm_qos_flags_remove_req (pqf, req); +/* fall through */ case PM_QOS_ADD_REQ : req->flags = val;INIT_LIST_HEAD (&req->node);
Signature · 1 line
2.7.4
Quoted 4 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
Acked-by Pavel Machek <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html