From c2357c8af5e112d306c3e8b601c8d4d9a8618ab6 Mon Sep 17 00:00:00 2001 From: Preetham Chandru Ramchandra Date: Sun, 7 May 2023 02:14:43 +0000 Subject: [PATCH] cpuidle: tegra: Fix sparse issue. symbol 'tegra_auto_cpuidle_s2idle_exit' is not declared so made it static. Bug 3954363 Change-Id: I715a3c4c4553a533ed59c9b85f628ce1e9baa308 Signed-off-by: Preetham Chandru Ramchandra Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2899670 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Sandeep Trasi GVS: Gerrit_Virtual_Submit --- drivers/cpuidle/cpuidle-tegra-auto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-tegra-auto.c b/drivers/cpuidle/cpuidle-tegra-auto.c index 4577d0a2..7571a97c 100644 --- a/drivers/cpuidle/cpuidle-tegra-auto.c +++ b/drivers/cpuidle/cpuidle-tegra-auto.c @@ -31,7 +31,7 @@ static struct cpumask cpumask; static bool s2idle_sc7_state; static DEFINE_PER_CPU(struct cpuidle_driver *, tegra_auto_cpuidle_drivers); -bool tegra_auto_cpuidle_s2idle_exit(int cpu_number) +static bool tegra_auto_cpuidle_s2idle_exit(int cpu_number) { return (!cpumask_test_cpu(cpu_number, (const struct cpumask *)&cpumask)); }