summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2022-04-24 11:34:56 +0200
committerTom Rini <trini@konsulko.com>2022-05-05 15:06:02 -0400
commit90c52423be9933d5e85c20c6a0266b2c565f030a (patch)
tree3ad08a48bba967f6e894417e84e5754ec5dacebf /include/linux
parentbfae2744dd136198a97b480bc0cc1814663fe33b (diff)
lib/date: Make rtc_mktime and mktime64 Y2038-ready
We currently overflow due to wrong types used internally in rtc_mktime, on all platforms, and we return a too small type on 32-bit. One consumer that directly benefits from this is mktime64. Many others may still store the result in a wrong type. While at it, drop the redundant cast of mon in rtc_mktime (obsoleted by 714209832db1). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/time.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index 702dd276aea..14ff5b6f481 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -152,9 +152,6 @@ _DEFUN (ctime_r, (tim_p, result),
return asctime_r (localtime_r (tim_p, &tm), result);
}
-/* for compatibility with linux code */
-typedef __s64 time64_t;
-
#ifdef CONFIG_LIB_DATE
time64_t mktime64(const unsigned int year, const unsigned int mon,
const unsigned int day, const unsigned int hour,