git: 7d8b297d02b6 - stable/14 - sys/compat/freebsd32: use freebsd32_uint64_t for struct ffclock_estimate32
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Apr 2026 05:57:12 UTC
The branch stable/14 has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=7d8b297d02b6d17cc10a47a37047c1c232c9c3a4
commit 7d8b297d02b6d17cc10a47a37047c1c232c9c3a4
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-02-05 19:35:01 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-12 05:56:46 +0000
sys/compat/freebsd32: use freebsd32_uint64_t for struct ffclock_estimate32
Reviewed by: brooks
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D55135
(cherry picked from commit 3dc72107d29d304ba21f04426ec82077d23cedcd)
---
sys/compat/freebsd32/freebsd32.h | 2 +-
sys/compat/freebsd32/freebsd32_misc.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/compat/freebsd32/freebsd32.h b/sys/compat/freebsd32/freebsd32.h
index 1cc32f102e08..b3b739bb6ad7 100644
--- a/sys/compat/freebsd32/freebsd32.h
+++ b/sys/compat/freebsd32/freebsd32.h
@@ -59,7 +59,7 @@ struct ffclock_estimate32 {
struct bintime32 update_time;
ffcounter update_ffcount;
ffcounter leapsec_next;
- uint64_t period;
+ freebsd32_uint64_t period;
uint32_t errb_abs;
uint32_t errb_rate;
uint32_t status;
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 9dda5c3ecd1e..894cb40506ea 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -4114,7 +4114,7 @@ freebsd32_ffclock_setestimate(struct thread *td,
memcpy(&cest.update_time.frac, &cest32.update_time.frac, sizeof(uint64_t));
CP(cest, cest32, update_ffcount);
CP(cest, cest32, leapsec_next);
- CP(cest, cest32, period);
+ FU64_CP(cest, cest32, period);
CP(cest, cest32, errb_abs);
CP(cest, cest32, errb_rate);
CP(cest, cest32, status);
@@ -4144,7 +4144,7 @@ freebsd32_ffclock_getestimate(struct thread *td,
memcpy(&cest32.update_time.frac, &cest.update_time.frac, sizeof(uint64_t));
CP(cest32, cest, update_ffcount);
CP(cest32, cest, leapsec_next);
- CP(cest32, cest, period);
+ FU64_CP(cest32, cest, period);
CP(cest32, cest, errb_abs);
CP(cest32, cest, errb_rate);
CP(cest32, cest, status);