mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
um: Fix build w/o CONFIG_PM_SLEEP
commit 1fb1abc836 upstream.
uml_pm_wake() is unconditionally called from the SIGUSR1 wakeup
handler since that's in the userspace portion of UML, and thus
a bit tricky to ifdef out. Since pm_system_wakeup() can always
be called (but may be an empty inline), also simply always have
uml_pm_wake() to fix the build.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f73ec12dc7
commit
ed2bf5cee6
@@ -387,12 +387,12 @@ void text_poke_sync(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM_SLEEP
|
|
||||||
void uml_pm_wake(void)
|
void uml_pm_wake(void)
|
||||||
{
|
{
|
||||||
pm_system_wakeup();
|
pm_system_wakeup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM_SLEEP
|
||||||
static int init_pm_wake_signal(void)
|
static int init_pm_wake_signal(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user