From nobody Sun Jan 02 07:59:43 2022 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 0D312191CA25; Sun, 2 Jan 2022 07:59:44 +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 4JRWW351R0z3Npl; Sun, 2 Jan 2022 07:59:43 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 879D366AE; Sun, 2 Jan 2022 07:59:43 +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 2027xhwk064328; Sun, 2 Jan 2022 07:59:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2027xhEX064327; Sun, 2 Jan 2022 07:59:43 GMT (envelope-from git) Date: Sun, 2 Jan 2022 07:59:43 GMT Message-Id: <202201020759.2027xhEX064327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wojciech Macek Subject: git: d28d74de876b - main - smp.h: make sign conversion explicit 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: wma X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d28d74de876b3e45ffaf85784a9d3f5accbd4834 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641110383; 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=daDDmUYvBzgQOAC9u/Rsqk//Nu4A4QsqnsydLB8qfoU=; b=MWQBc4TYO6/kT6aceGCAnvVy04IJctV4CISqUbL+End2p1KGia+KDpqc22xy3+1g821CzE MRCIorcQ64RAKtUi/0Ds2ZyimkyCZmvkzdTMKxBPmmEX7Sd2sj/Zo1C//ovEByIumlq0Dv XgMAQK0q+sU3Bs1B0JkvajmUN9Ux2Ant9pfn7Ig2uVmgdcY/OlO4qu00KpcVqmYhUHi3hj k4UQVSLyxs9gVehZtgt6Z3nTe8JM9cHCCtZlFc4L4yQsMqX06nihvKgE49PDsBOfYtxSPp SrW1Fg9LNbqpddDGo5NITN/p+f5e5L+pXkHZLGUxNEItWfWkKp0wLsab62WX5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641110383; a=rsa-sha256; cv=none; b=Ptpk/sLel4RP2OE/tMBBaORJlQcXcIL4bSuOYhyg/JLIFUPccuQYZi+otqsYF7gsgIuOrZ mt1uenE+Cep/2+/N0vvWD8Zsw4UAQMOme7Dszjelz8JaPBkcMxySz4G3Ht1L68IsjugI76 MsdCeR/eeOd0krFoUUCIjcdKu+K6w+mwf66giPZlhCGHWHr9VcJuNfgPImmrGC7lqP7ZC0 2720rIHzqC5T+rtz0hwa8Vv+MPwF9ERX3QfLXN4JiEMmXJl7Lq6FRDMRM3UTZG8v/1FPNi llDtdY+IxsYthCI2Xmo9VAHtGhABOA3o1kN+0/vIG1r+L6jhC4VZN2CDDZ04Ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wma: URL: https://cgit.FreeBSD.org/src/commit/?id=d28d74de876b3e45ffaf85784a9d3f5accbd4834 commit d28d74de876b3e45ffaf85784a9d3f5accbd4834 Author: sebastien.bini AuthorDate: 2021-12-14 10:54:12 +0000 Commit: Wojciech Macek CommitDate: 2022-01-02 07:59:21 +0000 smp.h: make sign conversion explicit When comparing singed with unsigned the signed value is casted to unsigned. Make this explicit as it might lead to compilation warnings otherwise. Obtained from: Stormshield --- sys/sys/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/smp.h b/sys/sys/smp.h index 1da557212ae2..4583dc4350c9 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -213,7 +213,7 @@ cpu_next(int i) for (;;) { i++; - if (i > mp_maxid) + if ((u_int)i > mp_maxid) i = 0; if (!CPU_ABSENT(i)) return (i);