From: Chanwoo Choi Date: Thu, 12 Jan 2017 08:27:51 +0000 (+0900) Subject: pass: Fix the build warnings X-Git-Tag: submit/tizen/20170328.004502~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ddcc2d18db8de23daa356a5f88955d46d06b65c;p=platform%2Fcore%2Fsystem%2Fpass.git pass: Fix the build warnings This patch fixes the build warnings about following issues: - pass-plugin.c: warning: unused variable 'level' [-Wunused-variable] - pass-pmqos.c: warning: implicit declaration of function 'get_time_ms' [-Wimplicit-function-declaration] - pass-pmqos.c: warning: unused variable 'locked_time' [-Wunused-variable] Signed-off-by: Chanwoo Choi --- diff --git a/src/pass/pass-plugin.c b/src/pass/pass-plugin.c index 1205463..d8dc8b4 100644 --- a/src/pass/pass-plugin.c +++ b/src/pass/pass-plugin.c @@ -539,7 +539,6 @@ out: int get_pass_table(struct pass_policy *policy, char *pass_conf_path) { int ret; - int level; policy->state = PASS_UNUSED; policy->scenario.state = PASS_UNUSED; diff --git a/src/pass/pass-pmqos.c b/src/pass/pass-pmqos.c index 87ebbd3..610251a 100644 --- a/src/pass/pass-pmqos.c +++ b/src/pass/pass-pmqos.c @@ -23,6 +23,7 @@ #include "pass.h" #include "pass-core.h" +#include "pass-plugin.h" #include "core/device-notifier.h" #include "core/config-parser.h" @@ -190,11 +191,10 @@ int pass_notifier_pmqos_func(struct pass_policy *policy, void *data) if (locked) { _I("Lock '%s' scenario\n", name); } else { - int64_t locked_time = - get_time_ms() - scenario->list[index].locked_time; scenario->list[index].locked_time = 0; - _I("UnLock '%s' scenario (%lldms)\n", name, locked_time); + _I("UnLock '%s' scenario (%lldms)\n", name, + (get_time_ms() - scenario->list[index].locked_time)); } pass_governor_change_level_scope(policy, cpufreq_min_level,