summaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
authorGuenter Roeck <groeck@chromium.org>2016-03-04 07:22:27 -0800
committerAmit Pundir <amit.pundir@linaro.org>2016-04-07 16:49:57 +0530
commit486057e23399589d5d2b904bfbfcd48ea9c72066 (patch)
treee0d72a57321e81fa4ac346e71c9f5e4e63431352 /kernel/Makefile
parent860df91e2aa0da046c727ea87ad7f1176a20665d (diff)
power: Provide dummy log_suspend_abort_reason() if SUSPEND is disabled
The API to log the suspend reason was introduced with commit 57caa2ad5ce3 ("power: Adds functionality to log the last suspend abort reason."). It is called from functions enabled with PM_SLEEP and from functions enabled with SUSPEND, but only available if SUSPEND is enabled. This can result in build failures such as the following if PM_SLEEP is enabled, but SUSPEND is not. kernel/built-in.o: In function `try_to_freeze_tasks': process.c:(.text+0x30928): undefined reference to `log_suspend_abort_reason' drivers/built-in.o: In function `syscore_suspend': (.text+0x6e250): undefined reference to `log_suspend_abort_reason' drivers/built-in.o: In function `__device_suspend': main.c:(.text+0x7a528): undefined reference to `log_suspend_abort_reason' Fixes: 57caa2ad5ce3 ("power: Adds functionality to log the last suspend abort reason.") Signed-off-by: Guenter Roeck <groeck@chromium.org>
Diffstat (limited to 'kernel/Makefile')
0 files changed, 0 insertions, 0 deletions