Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1226099
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [Y2038] [PATCH V2] hp_sdc_rtc: fixed y2038 problem in proc_show |
| Date | 2015-09-16 16:00 +0200 |
| Message-ID | <q9lpE-6fG-11@gated-at.bofh.it> (permalink) |
| References | <q9lfY-64l-31@gated-at.bofh.it> <q9lfY-64l-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wednesday 16 September 2015 21:45:38 WEN Pingbo wrote: > hp_sdc_rtc_proc_show() use timeval to store the time, which will > overflowed in 2038. > > This patch fixes this problem by replacing timeval with timespec64. > hp_sdc_rtc_proc_show() only output string, so that userspace will work > normally if we apply this patch. > > Not all timer in i8042 have y2038 risk(handshake, match timer, etc), > Replacements in those timer are just for consistency. > > Version 2 Updates: > - compiled in m68k gcc cross compiler(4.6.3), no extra warnings > - placed s64 type cast in tv.tv_sec, making sure it work properly in > both 32bit and 64bit platform. > > Signed-off-by: WEN Pingbo <pingbo.wen@linaro.org> > Cc: Y2038 <y2038@lists.linaro.org> > Looks very good, Reviewed-by: Arnd Bergmann <arnd@arndb.de> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V2] hp_sdc_rtc: fixed y2038 problem in proc_show WEN Pingbo <pingbo.wen@linaro.org> - 2015-09-16 15:50 +0200 Re: [Y2038] [PATCH V2] hp_sdc_rtc: fixed y2038 problem in proc_show Arnd Bergmann <arnd@arndb.de> - 2015-09-16 16:00 +0200
csiph-web