From nobody Fri May 08 15:35:29 2026 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 4gBtVT69PMz6cV9Y for ; Fri, 08 May 2026 15:35:29 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gBtVT5hTyz49sp for ; Fri, 08 May 2026 15:35:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778254529; 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=6Ppvg1wPMWPiGMD0XUgMsqdDwQPjFjdlnk4FPVEwcvM=; b=aDMLepdbDM2MzvE9jIcisRPEBqwn0C3RRC7+tooA5QfC2eqL9Vq5OKLgoDIadC6id/mu6p qF1sUgdWTLZCLiW04PyOcAuo2FfEJdK38P9jNCbGGJiVHpW//DPA7WlK/Wcj5zWjiBJOH9 mDCflIK+QJT28DWaQrhuIQRvdzgFsiS5rc3RQRY27QDiqUa36SsL5HY9P1wphmmHDHbUVj 9eApYZBkji1WGE7lQjY1prNQj7TNFu21oCQTY5NOJwaNVAaJ1W+dFFdRcamgh260D/wDAH OjIAkR87hnSWSCgQm4tyJxbJbpZ9QdYMpaQEh+4hH9qV1P8/lltv44Dp3eGTgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778254529; a=rsa-sha256; cv=none; b=x0zk8zncDr0q3+Km16es1hH9OYHLVzj8VHIMyXA8en64def6A8FoaPuw5Mf6RID+b6nL5J 5eXhSBOQq8YH05f9i+K9KcqlOaYzMtMfm1BzG1DUzah/HoQmROx/hAhjqNUXHzmEQ8tdjM lZL3F7I+tIarxIPscbYdV7W4DF35t0Ietw2tCtLD1XxNvZZsrVDR1JO+wNbIiVxPd3VGrg T313SSkOxt7iVKMAUqcPHaMmn7kjONWdvf/WL5EMirOFelw/ebPJwTojgqsz//tUdHscsQ /zO1DxEVL8qk2WywLu4RZ0gcLykBof6C/P5QnjU1erQdIwRJG7VBo9lAU5shEQ== 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=1778254529; 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=6Ppvg1wPMWPiGMD0XUgMsqdDwQPjFjdlnk4FPVEwcvM=; b=cL24RVGvewXoil3K96Y3aS73a2b1DSLLgFQxBYo8WnFUjjTjy9G2MET+yEbHzwoNDXaSmp mG+Q9PbBE+smYuXjblglN0enR/tf64jbGX2SeHftBwH97jVzElvaISzu6YkGkzJoTPeInO smpBhPcMUn/6EHYFAaX09YJvw/YwHwDQQ4Wn1rlrnmdtS9awix2O92pgsE/rrVQ+Dd+W09 2aEcSHj81QNgcRPPwkP7AGYfa/CpIOXKl8clDluBmIdj/UqtvpU0G0QFwruzZvM2X59TGx U0ki76tia9+A7r3167bJ9WCED5ZL0zFFfMuVPrPx3N0fRHtHa+vZi7+8bGUFqQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gBtVT5GZjz3Wb for ; Fri, 08 May 2026 15:35:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31ef5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 08 May 2026 15:35:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ryan Libby Subject: git: cab150feb82e - stable/14 - sys/time: appease gcc -Wtype-limits 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cab150feb82ebae3edf59565de28df68be5cf281 Auto-Submitted: auto-generated Date: Fri, 08 May 2026 15:35:29 +0000 Message-Id: <69fe02c1.31ef5.59564ceb@gitrepo.freebsd.org> The branch stable/14 has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=cab150feb82ebae3edf59565de28df68be5cf281 commit cab150feb82ebae3edf59565de28df68be5cf281 Author: Ryan Libby AuthorDate: 2026-04-15 08:08:37 +0000 Commit: Ryan Libby CommitDate: 2026-05-08 15:34:15 +0000 sys/time: appease gcc -Wtype-limits In environments where time_t is 32 bits, including the 32-bit library build on amd64, the overflow being tested for cannot happen, and gcc complains with -Wtype-limits, causing the gcc build to fail. Work around this by ifdef'ing out the saturation code on i386. Reviewed by: imp, jfree Discussed with: markj Fixes: e3799530b3ba ("sys/time: Add saturating sbt conversions") Differential Revision: https://reviews.freebsd.org/D56369 (cherry picked from commit 00dccc3164c6dff38350a1baeeea7238acf2efc3) --- sys/sys/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/time.h b/sys/sys/time.h index 66fbd2dd41f4..195d3d12e953 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -357,10 +357,12 @@ tstosbt(struct timespec _ts) static __inline sbintime_t tstosbt_sat(struct timespec _ts) { +#ifndef __i386__ if (_ts.tv_sec > SBT_MAX >> 32) return (SBT_MAX); if (_ts.tv_sec < -(SBT_MAX >> 32) - 1) return (-SBT_MAX - 1); +#endif return (tstosbt(_ts)); } @@ -384,10 +386,12 @@ tvtosbt(struct timeval _tv) static __inline sbintime_t tvtosbt_sat(struct timeval _tv) { +#ifndef __i386__ if (_tv.tv_sec > SBT_MAX >> 32) return (SBT_MAX); if (_tv.tv_sec < -(SBT_MAX >> 32) - 1) return (-SBT_MAX - 1); +#endif return (tvtosbt(_tv)); }