diff options
| author | Karl Mehltretter <kmehltretter@gmail.com> | 2026-09-25 18:57:02 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-09-29 21:18:42 +0200 |
| commit | 3945c4a3ea151f777b4b098ebeecd2f85c20244f (patch) | |
| tree | 201393fbc9e09b7864da39379f1f7208044ee5e8 /scripts/Makefile.thinlto | |
| parent | 2927f7ca78448781e11a4623d347cd653c28adf6 (diff) | |
| download | linux-3945c4a3ea151f777b4b098ebeecd2f85c20244f.tar.gz linux-3945c4a3ea151f777b4b098ebeecd2f85c20244f.zip | |
time/kunit: Add time64_to_tm() case beyond 32-bit day count
The existing date range test covers +/-80,000 years around the epoch,
far below the day count at which a 32-bit long wraps (2^31 days,
roughly 5.88 million years).
Add a case at exactly 2^31 days after the epoch. Without the preceding
fix a 32-bit kernel returns tm_year=-5879541 and wrong month, day,
day-of-year and weekday; with it the result matches 64-bit kernels.
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Assisted-by: LLM
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20260925165702.51677-3-kmehltretter@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
