summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-04 21:12:00 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-08-06 10:32:32 +0200
commit82837ad5bda79cd13d64b9abad92e7872a06bc65 (patch)
tree24f17fd937f06e2084621a91f6eda51d6ef172f2 /kernel/power
parentc2cd0b08e1efd9ee58d09049a6c77e5efa0ef627 (diff)
downloadlwn-82837ad5bda79cd13d64b9abad92e7872a06bc65.tar.gz
lwn-82837ad5bda79cd13d64b9abad92e7872a06bc65.zip
PM / hibernate: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This addresses Coverity-ID: 114713 ("Missing break in switch"). 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/hibernate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index 9c85c7822383..38f3f96b4b12 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -638,6 +638,7 @@ static void power_down(void)
break;
case HIBERNATION_PLATFORM:
hibernation_platform_enter();
+ /* Fall through */
case HIBERNATION_SHUTDOWN:
if (pm_power_off)
kernel_power_off();