From nobody Mon Jun 26 07:55:09 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 4QqKrY3fYNz4jPBW; Mon, 26 Jun 2023 07:55:09 +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 4QqKrY3DpYz3xd0; Mon, 26 Jun 2023 07:55:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687766109; 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=0mIhzF0VnNw8MI0kcliRoGMcH0ZRLZjCJeZ6ujKWTAY=; b=gqhs/knbeMxeXSiCIVzT95J5FAZyujVqs41hjqjBBjIt5C1Fscft9eLOMpUTxeSDwDBlXO LBVNXVR9KwJQgWVvRAl/BMvi4rjhHHkpSBjlqQJnno2Fb2hRwOBnFvq1zK3OFiFAxV+5OO enjGaLc7nRDrPzI+wV4iX40wGmOaqI8u9xqCm/ipau8pzh/zNP61s+Eo3p2MhbBiML8kZd 4IaK1YV5VOYe/gGfl7VVecpoatHnX9zwfBz7Wuzgq82D2xiCIx/3DknC0CxDji+1h9L8up rv6OTZpYGBsdFPXfb6ZmnYVWR6v+6gIhFaCSMuMgztV2DLk6uMayWVOLzxj/QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687766109; 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=0mIhzF0VnNw8MI0kcliRoGMcH0ZRLZjCJeZ6ujKWTAY=; b=U0Pm6rMFNEUizjFSDXSkXXHM3M3yXmxoX2nY6MtqPDSt57LWdirC420X7/lCKnSz2rwPQV azAoNONdh1Gw40zX2w5wZpBltO4NAvi7NXyEr7jxYyHpvbasbYMvWQMHlZzlnhtJfPWsXg 4ho3HVK5F+rbw/uL4LZ8tXzGE2iIvLZ3NbP9cuI0gJKLrSAUJtqko8joiXIA54Xrafky+s 3UZR3sNBMcXlmyMk2By9S0fZ99m2JsJFvV7c3UE5eNNhM7hX/NoWkVg18G80Mx1Jlm/B/U BIU8SW3hNkOfYl6U1RMvI9Y0dxS98WpmqtNNGTkVyvcHPjPh18v8Ftq/sK7Z4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687766109; a=rsa-sha256; cv=none; b=ZOKFVOEGzpAfHBGc+zYbATEnfieS/WvNVVn8D0qbHLt+wI7IEic5p9OUkeUJ1HWz/ej3+o VcQZsnAWfMiOzXJuOYfY/ronCJK/B6cKsbk8aQzr0F9jix2SHQ6nCpsV767KendMOJRSHc b1ZickSaY1q/T9uKa/mEaJGeti64VHnb2GjUDDmfH/xe5gvHcQNrglqbmfbuKkP266b4gp tMToWT4/FUE1sXW8+MIRw5ipe++6WVhWCnb4uR6c5nAZCSaUd7ZPLTwBJwvWAID1/uxxdl I7nbqvwY0gI1q5pqhyQk4bQW6hlMexUEsltVXQkU2A4Z3TAIwAEmOkCHadRE1w== 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 4QqKrY2K8Nz126Q; Mon, 26 Jun 2023 07:55:09 +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 35Q7t97M067194; Mon, 26 Jun 2023 07:55:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35Q7t9dt067193; Mon, 26 Jun 2023 07:55:09 GMT (envelope-from git) Date: Mon, 26 Jun 2023 07:55:09 GMT Message-Id: <202306260755.35Q7t9dt067193@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: 08bc2cc4c4d8 - main - LinuxKPI: cast jiffies_to_msecs() result 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: 08bc2cc4c4d8e94ad1db63f97d923dee18bee668 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=08bc2cc4c4d8e94ad1db63f97d923dee18bee668 commit 08bc2cc4c4d8e94ad1db63f97d923dee18bee668 Author: Bjoern A. Zeeb AuthorDate: 2023-06-10 22:57:27 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-26 07:54:24 +0000 LinuxKPI: cast jiffies_to_msecs() result jiffies_to_msecs() is expected to return an uint_t. In order to avoid changing printf format strings, properly cast the result to the expected type. Sponsored by: The FreeBSD Foundation MFC after: 10 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D40486 --- sys/compat/linuxkpi/common/include/linux/jiffies.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/jiffies.h b/sys/compat/linuxkpi/common/include/linux/jiffies.h index 76c9c6a749c1..1aca3e2f33be 100644 --- a/sys/compat/linuxkpi/common/include/linux/jiffies.h +++ b/sys/compat/linuxkpi/common/include/linux/jiffies.h @@ -40,7 +40,7 @@ #define jiffies ticks #define jiffies_64 ticks -#define jiffies_to_msecs(x) (((int64_t)(int)(x)) * 1000 / hz) +#define jiffies_to_msecs(x) ((unsigned int)(((int64_t)(int)(x)) * 1000 / hz)) #define MAX_JIFFY_OFFSET ((INT_MAX >> 1) - 1)