From: kbuild test robot <lkp@intel.com>
To: Sasha Levin <sasha.levin@oracle.com>
Cc: kbuild-all@01.org, a.zummo@towertech.it,
alexandre.belloni@free-electrons.com, rtc-linux@googlegroups.com,
linux-kernel@vger.kernel.org,
Sasha Levin <sasha.levin@oracle.com>
Subject: Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm
Date: Fri, 4 Dec 2015 09:41:58 +0800 [thread overview]
Message-ID: <201512040917.SKHzdiDn%fengguang.wu@intel.com> (raw)
In-Reply-To: <1449187944-11730-1-git-send-email-sasha.levin@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 2056 bytes --]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
Hi Sasha,
[auto build test ERROR on abelloni/rtc-next]
[also build test ERROR on v4.4-rc3 next-20151202]
url: https://github.com/0day-ci/linux/commits/Sasha-Levin/rtc-fix-overflow-and-incorrect-calculation-in-rtc_time64_to_tm/20151204-081508
base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
config: arm-prima2_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All errors (new ones prefixed by >>):
drivers/built-in.o: In function `rtc_time64_to_tm':
>> drivers/rtc/rtc-lib.c:64: undefined reference to `__aeabi_ldivmod'
drivers/rtc/rtc-lib.c:66: undefined reference to `__aeabi_ldivmod'
vim +64 drivers/rtc/rtc-lib.c
c58411e9 Alessandro Zummo 2006-03-27 58
c2c11ae4 pang.xunlei 2014-11-18 59 /* time must be positive */
c2c11ae4 pang.xunlei 2014-11-18 60 days = div_s64(time, 86400);
ee9fd0e8 Sasha Levin 2015-12-03 61 secs = time - days * 86400;
c58411e9 Alessandro Zummo 2006-03-27 62
c58411e9 Alessandro Zummo 2006-03-27 63 /* day of the week, 1970-01-01 was a Thursday */
c58411e9 Alessandro Zummo 2006-03-27 @64 tm->tm_wday = (days + 4) % 7;
c58411e9 Alessandro Zummo 2006-03-27 65
c58411e9 Alessandro Zummo 2006-03-27 66 year = 1970 + days / 365;
c58411e9 Alessandro Zummo 2006-03-27 67 days -= (year - 1970) * 365
:::::: The code at line 64 was first introduced by commit
:::::: c58411e95d7f5062dedd1a3064af4d359da1e633 [PATCH] RTC Subsystem: library functions
:::::: TO: Alessandro Zummo <a.zummo@towertech.it>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 12388 bytes --]
next prev parent reply other threads:[~2015-12-04 1:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 0:12 Sasha Levin
2015-12-04 0:21 ` kbuild test robot
2015-12-04 1:39 ` kbuild test robot
2015-12-04 1:41 ` kbuild test robot [this message]
2015-12-04 1:55 ` Alexandre Belloni
2015-12-04 2:06 ` Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201512040917.SKHzdiDn%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=sasha.levin@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®