From nobody Wed May 17 10:23:11 2023 X-Original-To: dev-commits-src-main@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 4QLq1r1QmKz49wtx; Wed, 17 May 2023 10:23:12 +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 4QLq1r0vkXz47CF; Wed, 17 May 2023 10:23:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684318992; 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=fWK3EHXIBqCxsDlRf1HkY7luHTvbukacMc4+gFHMKGk=; b=QIrUQFX2XUSrmKTzch1zHp8d2/nCN+asj0oHas9x/n2pwCKfRjI3JuhAP6dJrV89UDIOaW dFSL0tRzpkGTj8Gmux8jw9ifBYpH4HMAYrxgmWwL6+U/WQebMb62zEvAybxcU12ceCZjgO NSYISl2dYEhmT9fUrg6X4HpO9grg+F0wyEd4eMsS4sQAfxtNQ1YXl84z8VXGaVKsbbU/xm vbGQatQfOBz/bciOGHUmWR6Bem2bYnqndzylSesV4qPBWRTBMV+qA62QOX1keLcClU32S4 Z3u7Wj8DIpTbmScHdyRvMs8FllBXpRDKviw5Z81VL/MH61Em9124eBFW97Ttdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684318992; 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=fWK3EHXIBqCxsDlRf1HkY7luHTvbukacMc4+gFHMKGk=; b=ND5FQUKgv8IkeNa0QcaTOBZsg/4LsczI6EcynlOX2f3Yfib3RgfIKTYs+UsfB5pwef2hZ6 i+FbYOhc2U3PHgQ3fsS0f1xFXsjls2Zt5LHVm4nURdfm/XeyHKvbRtZtdNnl6EYd8tCpkM AP8zM/z+vIbIPNQSO+LJmhzyIrza4MWjHmpeal967LlcSJboBUR7AoTKMRXu/WuHV02gt0 awiuY5TiLnwcwH8Hq91feDinwlzjeOrDz7REGQLbE4tL5sIaNwP2GH0LFu+WBBc66XDuZC tn1uAXDpquBMjxXjrzVPjZJqPqWKJ1JEpHEcLexVhcWqM6Dh406k4aoiG8zEbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684318992; a=rsa-sha256; cv=none; b=NTKNoO9kMFNvn0tGLGGE0k5oa7xUYylJvbJyXtD0AKHSNeNHaq20/LQkF6QMOJavOxQMST FdfykKj10ygNL9TIRU0dhabFuS+4Znp6PYvx6+3t39cBru80OAp8QQaIgiXs6MbEUbvqY5 Y2VnK0SCr0CRu9LX0sqibYk67SdWFcFPBDdo7M43xODl9Jxsw7XTdfyS8iA1zvAR+VagJn zUNu8i5Gp7lN2/Vrl8tlWEaEPsGR75unDxmH6CkIGoSCJM8HCHuKcAzvUDuKOkK0hfAU5p ZTjo5CtLxvsuMC0OTMMLQM5Jdm5quGw+rvmWQC+7iYBbcqfbWR0Jpln+1k0rfw== 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 4QLq1q74GBz10Y1; Wed, 17 May 2023 10:23:11 +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 34HANB6s089340; Wed, 17 May 2023 10:23:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34HANBfU089339; Wed, 17 May 2023 10:23:11 GMT (envelope-from git) Date: Wed, 17 May 2023 10:23:11 GMT Message-Id: <202305171023.34HANBfU089339@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 71fde8e5070c - main - LinuxKPI: add ns_to_timespec64() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 71fde8e5070c4128e35acdb7f69a01460bce4638 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=71fde8e5070c4128e35acdb7f69a01460bce4638 commit 71fde8e5070c4128e35acdb7f69a01460bce4638 Author: Bjoern A. Zeeb AuthorDate: 2023-05-16 21:00:45 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-05-17 10:22:07 +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 MFC after: 10 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D40123 --- 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 a1c18d6879ca..62f20c15f607 100644 --- a/sys/compat/linuxkpi/common/include/linux/time.h +++ b/sys/compat/linuxkpi/common/include/linux/time.h @@ -121,6 +121,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) {