From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Mario Limonciello <mario.limonciello@amd.com>,
linux-rtc@vger.kernel.org, Bjorn Helgaas <helgaas@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux ACPI <linux-acpi@vger.kernel.org>,
Linux PM <linux-pm@vger.kernel.org>,
Mel Gorman <mgorman@techsingularity.net>,
Zhang Rui <rui.zhang@intel.com>,
Todd Brandt <todd.e.brandt@linux.intel.com>
Subject: [PATCH] rtc: rtc-cmos: Fix compilation with CONFIG_ACPI unset
Date: Wed, 19 Oct 2022 18:03:33 +0200 [thread overview]
Message-ID: <2677035.mvXUDI8C0e@kreacher> (raw)
From: Rafael J. Wysocki <rafael.j.wysocki@intel.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@intel.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)
{
}
reply other threads:[~2022-10-19 16:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2677035.mvXUDI8C0e@kreacher \
--to=rjw@rjwysocki.net \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=helgaas@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=mgorman@techsingularity.net \
--cc=rui.zhang@intel.com \
--cc=todd.e.brandt@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox