aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/time32.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-11-05 11:10:01 +0100
committerArnd Bergmann <arnd@arndb.de>2019-11-15 14:38:29 +0100
commit2a785996cc5e2fc1d1d29d196f530905f68d2dc2 (patch)
tree554fb14f12fba31cdc7a39b80ccc63ab1efdfed1 /include/linux/time32.h
parenty2038: stat: avoid 'time_t' in 'struct stat' (diff)
downloadlinux-dev-2a785996cc5e2fc1d1d29d196f530905f68d2dc2.tar.xz
linux-dev-2a785996cc5e2fc1d1d29d196f530905f68d2dc2.zip
y2038: uapi: change __kernel_time_t to __kernel_old_time_t
This is mainly a patch for clarification, and to let us remove the time_t definition from the kernel to prevent new users from creeping in that might not be y2038-safe. All remaining uses of 'time_t' or '__kernel_time_t' are part of the user API that cannot be changed by that either have a replacement or that do not suffer from the y2038 overflow. Acked-by: Deepa Dinamani <deepa.kernel@gmail.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/time32.h')
-rw-r--r--include/linux/time32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/time32.h b/include/linux/time32.h
index 0a1f302a1753..cad4c3186002 100644
--- a/include/linux/time32.h
+++ b/include/linux/time32.h
@@ -12,7 +12,7 @@
#include <linux/time64.h>
#include <linux/timex.h>
-#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
+#define TIME_T_MAX (__kernel_old_time_t)((1UL << ((sizeof(__kernel_old_time_t) << 3) - 1)) - 1)
typedef s32 old_time32_t;