summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorNeal Liu <neal.liu@mediatek.com>2020-07-31 05:39:04 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-07-31 13:29:13 +0200
commit0a398945d6f3e54f9f88ba2a17908674c659bfa4 (patch)
tree0259f9cd7555302597a4a0f84ee0a28294414c14 /drivers/acpi/processor_idle.c
parentintel_idle: Customize IceLake server support (diff)
downloadlinux-0a398945d6f3e54f9f88ba2a17908674c659bfa4.tar.xz
linux-0a398945d6f3e54f9f88ba2a17908674c659bfa4.zip
cpuidle: ACPI: fix 'return' with no value build warning
Add return value to fix return-type build warning introduced by commit efe9711214e6 ("cpuidle: change enter_s2idle() prototype"). Fixes: efe9711214e6 ("cpuidle: change enter_s2idle() prototype") Signed-off-by: Neal Liu <neal.liu@mediatek.com> [ rjw: Subject & changelog edits, make acpi_idle_enter_s2idle() return 0 in all cases ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 6ffb6c99c2de..0c65a09aec1b 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -664,11 +664,11 @@ static int acpi_idle_enter_s2idle(struct cpuidle_device *dev,
struct acpi_processor *pr = __this_cpu_read(processors);
if (unlikely(!pr))
- return;
+ return 0;
if (pr->flags.bm_check) {
acpi_idle_enter_bm(pr, cx, false);
- return;
+ return 0;
} else {
ACPI_FLUSH_CPU_CACHE();
}