From nobody Mon Jun 26 12:08:46 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QqRTC2YK8z4k6yB; Mon, 26 Jun 2023 12:08:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QqRTB6dr2z3jd4; Mon, 26 Jun 2023 12:08:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B6fAfEsTwkalP7LuuHb+0VHhDFh1jpE9ewoeBnX4Z10=; b=oS0GoJbeJ/HSktyABjZwic20TeJkxHnmhY5z+qE4uO79XNuaF7USIK4/ER+CvADuTU4OO8 5QFxwOA4Ltjnv3hINkBmChtmPlMusbGtXPFj+AmmpHqA5CB61uVMUDR9XJa0cnhjWTyFza 8cHAuJm/+XaaDzY3vQG4+up8wQltola452XEyfXKAfO9v6IbsVnqi/n/SsMk4Ibmm15XmD jwK9y2lmiS2SgRZmDQuTQcKloqiA64osAeoCMY80AuSDcpHchYDl2UYsNRMrDbbkLCgSjp 7mxoZo6/ZcJtGEGOkHZbzp0coPjh7aLBtXrTjHu6hUDgWAjDowQxfBrGX8SaDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B6fAfEsTwkalP7LuuHb+0VHhDFh1jpE9ewoeBnX4Z10=; b=pA51iE28hUxuCWi3chkUMVZqvApsUzaxNY/i+f6UUBqNXldzTeWFhz9EmbjOk6sFTw2QFw w/RSkxa83k1FYK97qUOdZayziJVrEeHWGVK/KSsIM32Y1P2v5sscCOXzQ/A/OVYhIxsA52 iQyrZC02Lj2nl7xl1KpEoFRimT7knxcPYFqon06ERkJqaAhtSVpeo/3CFwr4U7yVip1oyP I1Mj22urVgReHwXGF3BO2kmcE0qO04o6XxQQymLsAYLWM/Sx1JKtd1ht+4QBh584knPAvT VOU9nh0P5HnykhC6w9lQDa70snq7PwD4U5RGcUyBMTkcIDwyucUkEbRsRT1nIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687781326; a=rsa-sha256; cv=none; b=uChzlqXszdW3xvFAj+gvUTJuhKB/RcX7QmrktXbkS9Em8wQ2DARyEP809kzqqkH6+5cKWf kITO/3hzDo0cf6YeIVBZE10/behsBSu21tpytATxFo0W8dDZtBJ72ZIct0Ly8Xryf1mHvN Npdy8bO2BAl4FLTwD+LLUxt7SS/t90b7N4MmjNJQFibpVzhzTuy7kKO7eypUKsTs3br9O9 EEugpJNt41cF/ycSu/cw+kRaGjeEvx+AAkT/q7IYd3RXSTn/3i7sH/HzuoI0/jjQ6lIVz9 td0fVlzNQwHNl/rzMCG5S4cr61ZYcvyB9/45WesslUxOZo9AV+BtfDukSAri2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QqRTB5lqKz18Ws; Mon, 26 Jun 2023 12:08:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35QC8kj9083285; Mon, 26 Jun 2023 12:08:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35QC8kN2083284; Mon, 26 Jun 2023 12:08:46 GMT (envelope-from git) Date: Mon, 26 Jun 2023 12:08:46 GMT Message-Id: <202306261208.35QC8kN2083284@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: de3045f3f955 - stable/13 - LinuxKPI: add ns_to_timespec64() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: de3045f3f95565278ae0ce1dcda0a2677c894edc Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=de3045f3f95565278ae0ce1dcda0a2677c894edc commit de3045f3f95565278ae0ce1dcda0a2677c894edc Author: Bjoern A. Zeeb AuthorDate: 2023-05-16 21:00:45 +0000 Commit: Bjoern A. Zeeb 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) {