From 2feb4789b7e149c6b90de54f00934ac6fa94ce36 Mon Sep 17 00:00:00 2001 From: Carlos Llamas Date: Wed, 14 Apr 2021 15:38:21 +0000 Subject: [PATCH] ANDROID: smp: fix preprocessor conditional warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following warning: kernel/smp.c: In function ‘wake_up_all_idle_cpus’: kernel/smp.c:961:5: warning: "CONFIG_SUSPEND" is not defined, evaluates to 0 [-Wundef] #if CONFIG_SUSPEND ^~~~~~~~~~~~~~ Bug: 183339614 Fixes: fc005b3ced1b (ANDROID: fix 0-day build-break for non-GKI) Reported-by: kernelci.org bot Signed-off-by: Carlos Llamas Change-Id: Ieeff7c0a49237e117e93e653b8f1a3e2d63f3f65 --- kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/smp.c b/kernel/smp.c index da8562ce07d8..256d068629b5 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -958,7 +958,7 @@ void wake_up_all_idle_cpus(void) if (cpu == smp_processor_id()) continue; -#if CONFIG_SUSPEND +#if IS_ENABLED(CONFIG_SUSPEND) if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu)) #endif wake_up_if_idle(cpu);