From: Luis Gonzalez Fernandez Date: Fri, 7 Sep 2012 19:35:21 +0000 (+0200) Subject: PM / QoS: Add return code to pm_qos_get_value function. X-Git-Tag: v3.7-rc1~137^2~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6a57bfffea5b673e5b4f9aeff85a00607e59077;p=thirdparty%2Fkernel%2Flinux.git PM / QoS: Add return code to pm_qos_get_value function. pm_qos_get_value don't return a return code in all cases. It's sure that anything interesting happend after BUG() but this prevent any compilation warning. [rjw: Chaneged the new return value to PM_QOS_DEFAULT_VALUE.] Signed-off-by: Luis Gonzalez Fernandez Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 6a031e684026f..846bd42c7ed17 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -139,6 +139,7 @@ static inline int pm_qos_get_value(struct pm_qos_constraints *c) default: /* runtime check for not using enum */ BUG(); + return PM_QOS_DEFAULT_VALUE; } }