From nobody Wed Nov 29 16:37:50 2023 X-Original-To: dev-commits-src-all@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 4SgQ3g0Tr8z52wWt; Wed, 29 Nov 2023 16:37:51 +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 4SgQ3f6QQBz3G2x; Wed, 29 Nov 2023 16:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701275870; 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=Jwy4GPLvXNL8KebU5J6Wj2+3iIyaca0CqKJcPsjaGR8=; b=OZuH7cWZbnvYiHsGB0tqlwN5uMJQBF4CtAq4I1MTKa72akJf7cuGSw/Ac5PDBolta9K8fS eRQV27eNfQ67i0odi/8w73b9mC/Xtv6kw5hwjDOQmc6zDoWSNrDsiep+kSixjLq2ZsPV7r SqKe6EfvGtQ0PUqs86/YgYz6aP0NPM/jeZaf6yD/1AjeCyWt2NRPKs1jHFnu5j6usWWOPV ZIGWRJq4Ifel2yvCFMyBY/f7TyDyiEpNqjce2K+17xjuPc7FsGwU0F9zsrTl+Hd2QuFp5L RBF/WeRfBs8nDNZgPh4qUe2x4i1UcJmmZHNeFRrTURgrDYfySDRl13XlyspcrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701275870; 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=Jwy4GPLvXNL8KebU5J6Wj2+3iIyaca0CqKJcPsjaGR8=; b=u+5Mcn7WfGGB83dwkcUX781D8xZuetq/pkZmnSi1PuNU32A3zjnJV+U+YSG6jRJRua7w6r 6HzAjqKWCnxrd6nTSuTh0TmvlkLmm/7bzmfeT4Ql/NvMxrBYqUmjwGb152t86Ydx7BfpPD bndFpMBIXCNMUxtY7Ei1ElDGpHalBOE6oigtXJ9W0As4H/hENivX1W8shXVW2J5evU+4et P+HiD7gX+OysQQdtEXNVSN2eCloXbqTIIj1y7JHJ/1CdrmtlOaeBPL+SIs6xhS8vLN2AAY d9nkU42ab62EJNt5y6Hs4yObflXFvvKmUjMLq1MntVd7KDAiK71HhdFP5mudDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701275870; a=rsa-sha256; cv=none; b=Oh+mWlYFb69MDcW9m8NARb4XgRPoRkQhFhw2zeEKV/gs3cPhdFlIOCHhRQ6x2xRK5KJ4lg YESHooLL++xEdSygw++UZ7uU96VqiKidPAnLHjDG/WzMTJS7azBSOz3dNyDpk4Gu2sWnFK ezyz7TtmyD8i12VBrCMCgNJfKqiT5C4g/Rn8jA6y/z67ET+NtOt8pEJGMHRV684/+axeFO 4paKy67VhPyseMqCY0isDnS3BkqB1gTZ9kOWbxaRqlEiHqnvC2FgECZvZhnZ1oppSPom5T V74NqzVE/hxboH7jT5A1X64YkM0ev/gQnJHqokRtO7EsD83JZbvrRwrgVTxH/Q== 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 4SgQ3f5RpYz1Bwg; Wed, 29 Nov 2023 16:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3ATGboQi044289; Wed, 29 Nov 2023 16:37:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ATGbos9044286; Wed, 29 Nov 2023 16:37:50 GMT (envelope-from git) Date: Wed, 29 Nov 2023 16:37:50 GMT Message-Id: <202311291637.3ATGbos9044286@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: 47fb8095f8a8 - stable/13 - LinuxKPI: cast jiffies_to_msecs() result List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 47fb8095f8a840e5cb38e5431d3b128f61b5db40 Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=47fb8095f8a840e5cb38e5431d3b128f61b5db40 commit 47fb8095f8a840e5cb38e5431d3b128f61b5db40 Author: Bjoern A. Zeeb AuthorDate: 2023-06-10 22:57:27 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-11-29 16:36:03 +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 (cherry picked from commit 08bc2cc4c4d8e94ad1db63f97d923dee18bee668) --- 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 d86e5226420d..d5cb6e14860e 100644 --- a/sys/compat/linuxkpi/common/include/linux/jiffies.h +++ b/sys/compat/linuxkpi/common/include/linux/jiffies.h @@ -38,7 +38,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)