PM / suspend: Add dependency on RTC_LIB
authorGuenter Roeck <groeck@chromium.org>
Thu, 3 Mar 2016 18:33:40 +0000 (10:33 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:57 +0000 (16:49 +0530)
Commit 1eff8f99f9f9 ("PM / Suspend: Print wall time at suspend entry and
exit") calls rtc_time_to_tm(), which in turn calls rtc_time64_to_tm().
Since RTC_LIB is not mandatory for all architetures, this can result in
the following build error.

suspend.c:(.text+0x2f36c): undefined reference to `rtc_time64_to_tm'

rtc_time64_to_tm() is implemented in rtc-lib, so SUSPEND now needs to
select RTC_LIB.

Fixes: 1eff8f99f9f9 ("PM / Suspend: Print wall time at suspend entry and exit")
Signed-off-by: Guenter Roeck <groeck@chromium.org>
kernel/power/Kconfig

index 84c480946fb2972f4eb220c5491266b34f63f372..6d6f63be1f9b487a6c19c3d5210c6ec703a19216 100644 (file)
@@ -1,6 +1,7 @@
 config SUSPEND
        bool "Suspend to RAM and standby"
        depends on ARCH_SUSPEND_POSSIBLE
+       select RTC_LIB
        default y
        ---help---
          Allow the system to enter sleep states in which main memory is