summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-03-30 23:18:44 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-04-09 13:49:40 +0200
commitfe43e2ce526979271f6c682727c6af9e7c19bec5 (patch)
tree18adfaa3133a2601d80e2aca99ebe4ada489bf7e /kernel/power
parentMerge tag 'pm-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff)
downloadlinux-fe43e2ce526979271f6c682727c6af9e7c19bec5.tar.xz
linux-fe43e2ce526979271f6c682727c6af9e7c19bec5.zip
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 <gustavo@embeddedor.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/qos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 9d7503910ce2..fa39092b7aea 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -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);