]> git.baikalelectronics.ru Git - kernel.git/commit
um: Fix build w/o CONFIG_PM_SLEEP
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Dec 2020 19:51:02 +0000 (20:51 +0100)
committerRichard Weinberger <richard@nod.at>
Mon, 14 Dec 2020 20:15:32 +0000 (21:15 +0100)
commitf281c80a42d752beedde9edeb79e3e1ac351e434
treed043a003bed1826d4fdbb86ed314a47c39d20c96
parentde6aa9dd2d31abae6e629e1175a9a3f6690ab8c9
um: Fix build w/o CONFIG_PM_SLEEP

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>
arch/um/kernel/um_arch.c