diff options
| author | Alexandre Belloni <[email protected]> | 2015-05-14 22:39:06 +0200 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2015-06-25 01:13:36 +0200 |
| commit | 9393996761e23280f259d706133c8f0cd139fd58 (patch) | |
| tree | dd7ed7e35fe64cd5b51222b67e3750c14a8a307a /scripts/gdb/linux/utils.py | |
| parent | 99c14e4df6144bca12dcac657266a7b8216aaa16 (diff) | |
rtc: mt6397: fix build on some 32bits platforms
On some !ARM 32bits platforms, the following compilation error happens
because of the division on a 64bits value in mtk_rtc_read_time():
drivers/built-in.o: In function `mtk_rtc_read_time':
rtc-mt6397.c:(.text+0x265d13f): undefined reference to `__divdi3'
rtc-mt6397.c:(.text+0x265d150): undefined reference to `__moddi3'
Use div_s64() as done in rtc_time64_to_tm() to solve that.
Reported-by: kbuild test robot <[email protected]>
Acked-by: Eddie Huang <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions