]> git.baikalelectronics.ru Git - kernel.git/commit
time: Provide y2038 safe mktime() replacement
authorpang.xunlei <pang.xunlei@linaro.org>
Tue, 18 Nov 2014 11:15:18 +0000 (19:15 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 21 Nov 2014 19:59:58 +0000 (11:59 -0800)
commit6d5ee48131b9bc71ed2e726daf28881443ab4475
treed92267d1b186332bdc827850e72c3f7a4b0b600b
parent53d2b37fbc7bf5c95e44fed2c8e1cdae0a3cdcb5
time: Provide y2038 safe mktime() replacement

As part of addressing "y2038 problem" for in-kernel uses, this
patch adds safe mktime64() using time64_t.

After this patch, mktime() is deprecated and all its call sites
will be fixed using mktime64(), after that it can be removed.

Signed-off-by: pang.xunlei <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/time.h
kernel/time/time.c