U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] common: define time_t as 64bit
@ 2023-07-15  7:16 Heinrich Schuchardt
  2023-07-25 21:13 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2023-07-15  7:16 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Heinrich Schuchardt

To avoid the year 2038 problem time_t must be 64bit on all architectures.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 include/linux/types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/types.h b/include/linux/types.h
index baa2c491ea..9df930afd1 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -65,7 +65,7 @@ typedef __kernel_ptrdiff_t	ptrdiff_t;
 
 #ifndef _TIME_T
 #define _TIME_T
-typedef __kernel_time_t		time_t;
+typedef long long		time_t;
 #endif
 
 #ifndef _CLOCK_T
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] common: define time_t as 64bit
  2023-07-15  7:16 [PATCH] common: define time_t as 64bit Heinrich Schuchardt
@ 2023-07-25 21:13 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2023-07-25 21:13 UTC (permalink / raw)
  To: Heinrich Schuchardt; +Cc: u-boot

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

On Sat, Jul 15, 2023 at 09:16:59AM +0200, Heinrich Schuchardt wrote:

> To avoid the year 2038 problem time_t must be 64bit on all architectures.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-25 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-15  7:16 [PATCH] common: define time_t as 64bit Heinrich Schuchardt
2023-07-25 21:13 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox