[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2677035.mvXUDI8C0e@kreacher>
Date: Wed, 19 Oct 2022 18:03:33 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: Alessandro Zummo <a.zummo@...ertech.it>,
Mario Limonciello <mario.limonciello@....com>,
linux-rtc@...r.kernel.org, Bjorn Helgaas <helgaas@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Linux ACPI <linux-acpi@...r.kernel.org>,
Linux PM <linux-pm@...r.kernel.org>,
Mel Gorman <mgorman@...hsingularity.net>,
Zhang Rui <rui.zhang@...el.com>,
Todd Brandt <todd.e.brandt@...ux.intel.com>
Subject: [PATCH] rtc: rtc-cmos: Fix compilation with CONFIG_ACPI unset
From: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
After commit 0782b66ed2fb ("rtc: rtc-cmos: Fix wake alarm breakage")
the driver won't build with CONFIG_ACPI unset due to a missing stub
definition of rtc_wake_setup(), so fix that.
Fixes: 0782b66ed2fb ("rtc: rtc-cmos: Fix wake alarm breakage")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
---
drivers/rtc/rtc-cmos.c | 4 ++++
1 file changed, 4 insertions(+)
Index: linux-pm/drivers/rtc/rtc-cmos.c
===================================================================
--- linux-pm.orig/drivers/rtc/rtc-cmos.c
+++ linux-pm/drivers/rtc/rtc-cmos.c
@@ -1337,6 +1337,10 @@ static void cmos_check_acpi_rtc_status(s
#else
+static inline void rtc_wake_setup(struct device *dev)
+{
+}
+
static void cmos_wake_setup(struct device *dev)
{
}
Powered by blists - more mailing lists