Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread Sasha Levin
On 12/03/2015 08:55 PM, Alexandre Belloni wrote: > On 03/12/2015 at 19:12:24 -0500, Sasha Levin wrote : >> > At some point after humans go extinct and robots cotrol the world, dividing >> > he time64_t by 86400 to extract the days will overflow a 32bit integer, >> > leading to incorrect conversion

Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread Alexandre Belloni
On 03/12/2015 at 19:12:24 -0500, Sasha Levin wrote : > At some point after humans go extinct and robots cotrol the world, dividing > he time64_t by 86400 to extract the days will overflow a 32bit integer, > leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). > And at that time, t

Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread kbuild test robot
[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-incorre

Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread kbuild test robot
[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-incorre

Re: [PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread kbuild test robot
[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-incorre

[PATCH] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-03 Thread Sasha Levin
At some point after humans go extinct and robots cotrol the world, dividing he time64_t by 86400 to extract the days will overflow a 32bit integer, leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). Signed-off-by: Sasha Levin --- drivers/rtc/rtc-lib.c |4 ++-- 1 file change