cpuidle: ACPI: fix 'return' with no value build warning
authorNeal Liu <neal.liu@mediatek.com>
Fri, 31 Jul 2020 03:39:04 +0000 (11:39 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 31 Jul 2020 11:29:13 +0000 (13:29 +0200)
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>
drivers/acpi/processor_idle.c

index 6ffb6c9..0c65a09 100644 (file)
@@ -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();
                }