Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2023 12:08:46 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: de3045f3f955 - stable/13 - LinuxKPI: add ns_to_timespec64()
Message-ID:  <202306261208.35QC8kN2083284@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=de3045f3f95565278ae0ce1dcda0a2677c894edc

commit de3045f3f95565278ae0ce1dcda0a2677c894edc
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-05-16 21:00:45 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-06-26 09:17:28 +0000

    LinuxKPI: add ns_to_timespec64()
    
    Add ns_to_timespec64() which does not seem to require anything from
    us given timespec64 is aliases to timespec.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D40123
    
    (cherry picked from commit 71fde8e5070c4128e35acdb7f69a01460bce4638)
---
 sys/compat/linuxkpi/common/include/linux/time.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/time.h b/sys/compat/linuxkpi/common/include/linux/time.h
index 2b69ec46935c..59a78887c7e3 100644
--- a/sys/compat/linuxkpi/common/include/linux/time.h
+++ b/sys/compat/linuxkpi/common/include/linux/time.h
@@ -119,6 +119,8 @@ ns_to_timespec(const int64_t nsec)
 	return (ts);
 }
 
+#define	ns_to_timespec64(_x)	ns_to_timespec(_x)
+
 static inline int
 timespec_valid(const struct timespec *ts)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306261208.35QC8kN2083284>