From nobody Sun May 12 00:39:13 2024 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 4VcNzQ1x9kz5JfWx; Sun, 12 May 2024 00:39:14 +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 4VcNzP73xtz42Zr; Sun, 12 May 2024 00:39:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715474354; 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=3+YSY44gpra8+2rMUjEPPKJfteHlKqTC+kwjipJS3T8=; b=KpcG1ExGktl+ar89ajw3sWP1ReNWllodlWXipCwbUPUr7YolKAvPABUXweojjdWLxBJSE0 dHRvVlXHvXeAvkxAT+sQqWvMtG+jhTZPNcC4enqQx3L1Ikv5KHgPpcpAhtTYeC+rhi8MsT aEdINQIZMu6Kf/XhWbf863xIXJFmb1cOkGhMj76IS6W6ICYSWZcWXULAeTdczOItcem8DK F54LzwTbOZOyMaBVPLt4kCo06ID4i/xijw7YgtSj6CwoQANmgvhYoZ1/Ac3esVPhF8jD8l GgAxQAXfy/HoVReqczSoh+Qx2X06nCnGNpRE+xSPEkH+swSyvzm8Ud+7xWo5rQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715474354; a=rsa-sha256; cv=none; b=IH/vR9mAqEhLTa9K5xVRfuxDmLVe/Ff/1eAMV5ZLwcr4dfPErVrTlZmFNSTYaAqyWt1dJP s8OUEhchkikp7/DIFZNWICaGxCer69oFqItXIqI4zZs3c4aklsIqsiJXY6jQJYvq/8Ervm 4mBik9ycNTUU9nm/y9dePNkayKiFEyqJEZe9O/V9ofkWJOMajX2SOqFao/th5vrGSl6qKv 3fTgF0xUX51ylKOqBsX6HqNdGdQscbgQoPsgthmx5GB7GEVeWGOIMxNDNTTk/wOVoJQ2FS Cf1+1GFBdiqw56WNkCtAKnxouVF/Std8jjnnHyiXfRiAcQm3F8hmvWzolSu/rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715474354; 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=3+YSY44gpra8+2rMUjEPPKJfteHlKqTC+kwjipJS3T8=; b=qNz+B4WkZQuLlgg8R4FyarwypzVfc2OZkoafEGY943i1H3SnDp5eIaPNwL5Cdf2ccrDABG yDZ0SX11cwO90egW9z2N5p5OkBpefLt/AwHo38ToQjIMOg9WBhL+onUQPn3sOpAEpMXDWT tAoDHZNYlvmtVVWn18NKWXNYpR2XQDzdqebRzbTnyzgOjHwXAHbp1SQV9TQeeXZSMmYJVb HRvR9Z4oBGk0fXKJLd/9QTjtKp9QKDirJmU2QAWEnCaXPzT2wpXcIG8XCuI/aMI0Pz4mcx GJU1M4zHRWjUfgoCji/B4j0nq/tvQ5zzee6/ygeDHO9iMX12OSDUo6JbSp7V+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 4VcNzP6gxPzjRS; Sun, 12 May 2024 00:39:13 +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 44C0dD9H052666; Sun, 12 May 2024 00:39:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44C0dDhe052663; Sun, 12 May 2024 00:39:13 GMT (envelope-from git) Date: Sun, 12 May 2024 00:39:13 GMT Message-Id: <202405120039.44C0dDhe052663@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 02f481a30b82 - main - linprocfs: Fix i386 time type 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 02f481a30b8269c7cad24ec2920ca09751708a1e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=02f481a30b8269c7cad24ec2920ca09751708a1e commit 02f481a30b8269c7cad24ec2920ca09751708a1e Author: Warner Losh AuthorDate: 2024-05-11 22:36:23 +0000 Commit: Warner Losh CommitDate: 2024-05-12 00:38:17 +0000 linprocfs: Fix i386 time type Cast the time type to (long). This is correct on all architectures. On i386, this promotes the int time_t to a long (which is also 32-bit). On 64-bit architectures, this promotes the 64-bit signed time_t to a 64-bit signed int type. Sponsored by: Netflix --- sys/compat/linprocfs/linprocfs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index a877d4065c18..aa5af0b3c1c1 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -2145,9 +2145,9 @@ again: msqids[id].u.msg_perm.gid, msqids[id].u.msg_perm.cuid, msqids[id].u.msg_perm.cgid, - msqids[id].u.msg_stime, - msqids[id].u.msg_rtime, - msqids[id].u.msg_ctime); + (long)msqids[id].u.msg_stime, + (long)msqids[id].u.msg_rtime, + (long)msqids[id].u.msg_ctime); free(msqids, M_TEMP); return (0); @@ -2199,8 +2199,8 @@ again: semids[id].u.sem_perm.gid, semids[id].u.sem_perm.cuid, semids[id].u.sem_perm.cgid, - semids[id].u.sem_otime, - semids[id].u.sem_ctime); + (long)semids[id].u.sem_otime, + (long)semids[id].u.sem_ctime); free(semids, M_TEMP); return (0); @@ -2256,9 +2256,9 @@ again: shmids[id].u.shm_perm.gid, shmids[id].u.shm_perm.cuid, shmids[id].u.shm_perm.cgid, - shmids[id].u.shm_atime, - shmids[id].u.shm_dtime, - shmids[id].u.shm_ctime, + (long)shmids[id].u.shm_atime, + (long)shmids[id].u.shm_dtime, + (long)shmids[id].u.shm_ctime, 0, 0); /* XXX rss & swp are not supported */ free(shmids, M_TEMP);