Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88b26c58 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Amit Pundir
Browse files

PM / Suspend: use time_to_tm for printing timestamps

When CONFIG_RTC is disabled for any reason, we run into a link error
in the suspend code:

suspend.c:(.text+0x39764): undefined reference to `rtc_time_to_tm'

rtc_time_to_tm() is specific to rtc drivers, but there is an almost-identical
function named time_to_tm that we can use instead.

kernelci reported the problem only on android-3.18, but it also exists
in 4.4 and 4.9, which have the same code.

Log: https://kernelci.org/build/id/59106be259b514d00bb12d50/logs/


Fixes: 195382b8 ("PM / Suspend: Print wall time at suspend entry and exit")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c3946fda
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment