From 994a9ae38f0531603727c5c753c715fe1cb8df50 Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Thu, 16 Apr 2015 18:11:20 +0530 Subject: [PATCH] cpuidle: governor: menu: fix unused function warning Fixes warning caused by commit df99953c42c6 ("cpuidle: governor: menu: don't use loadavg") Signed-off-by: Amit Pundir --- drivers/cpuidle/governors/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index c42a8a11b860..b26bdcb59cb9 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -140,7 +140,7 @@ struct menu_device { #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) -static int get_loadavg(void) +static int __maybe_unused get_loadavg(void) { unsigned long this = this_cpu_load(); -- 2.34.1