From nobody Tue Apr 19 10:05:31 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 056885D28CD; Tue, 19 Apr 2022 10:05:33 +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 4KjKDr2bY1z4tsk; Tue, 19 Apr 2022 10:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650362732; 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=IcWSGCLk+UX8j6bT/GsroKcsJdbSJ/D6RgpSycsDRjk=; b=yZljxALdzVJOpiBFAhBpOrOf5L9ZaoWrjeGPDtM6Fq3JPJPoQKTUr691MuAwjEA71aMg2j NuSSa6ervsQ+iQHTe1K+yXvqGR2BynZVX64UXMvBnwxgGO4Hba/ACNI6rjkqIavP/Vh+Dh U48cODr1mRK6qkECkLb62/I4/ZcTD5PFb+ysmAuoFKt//+rH/nA4gDifDdgknoOSO8Hmpn 3hCkGYARnxufVDwZcLKBiRiEh2eO01Z71o53zZNS+qLVw0aQf+LZYtfqN5IB2CvFURQc+5 TnLBbhANqywqyVmbVKh9SdoyxzyQXFxZisM8pEq787drkyj7+Eovl27bTeIrVw== 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 031B0253A8; Tue, 19 Apr 2022 10:05:32 +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 23JA5Vp4012888; Tue, 19 Apr 2022 10:05:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23JA5V2m012887; Tue, 19 Apr 2022 10:05:31 GMT (envelope-from git) Date: Tue, 19 Apr 2022 10:05:31 GMT Message-Id: <202204191005.23JA5V2m012887@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 37c9ff4adfbd - stable/13 - Fix a sign mismatch warning in the physmem code 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 37c9ff4adfbdda281071bb4690b954de45884f72 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650362732; 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=IcWSGCLk+UX8j6bT/GsroKcsJdbSJ/D6RgpSycsDRjk=; b=huJJxfvhWFjHPaZVQvgm4DX56mY2uw3SjhaVoYBIOkQ8xr3x98lpk/3JJZt+M1nTuTYCQN ALPf5oEC8cOi5dT7IZMRJraulZyyd0GCExwnp9pSygYs9LCVaQkeeaoRF29mS3ZSfOAiCa AO3F4G79PGHX4d+eDtmuIzKcSr2YV16YqVy1riV98SKCPMmDion+1bXUSsc/jQJYsnKHyv muBzUmkl+qjgDVhKwvpz1G1zGA/hTapVY+pTVfavtY2z3BJQzumXFQgNcrRRnX3yTBDpRT pW734Xt+FpaPDyFKlePmqdnlMEfOND7Qyaw/SfBg+DSVJlMhYcCziar+5ufq0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650362732; a=rsa-sha256; cv=none; b=YdGc+IZp30TTZOldx0xFlh+ZHS4LvrZlJzlzzyi8DQf/uWZ+4GEyIBkPrxFHwU+YPi5uFV vvnoFXIRG1UQNFyR/gs+wUGel7rWKvjqiOC6Yt+QMIeJXsycbhP0gJMJJEleuErV1p6JQG Y+0FxJzRGEMbQ70b4A5sw72PW5/fNEXnLGLF4xQTgqAWr4e9jAuzvuqqHQvJVngKuDfjjI UfVxpaW/KcNwv7gpSVPLA9yWp3v/ivKIPP3ipIv2abfxaVqJDvPf1kRXe/8PbIYVN2Pt/N TR6dtoureJ91W4Xpot2xM4FZXtd9JegYhwQ4Nv4Phbmp1EWF6civ133ffJr1wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=37c9ff4adfbdda281071bb4690b954de45884f72 commit 37c9ff4adfbdda281071bb4690b954de45884f72 Author: Andrew Turner AuthorDate: 2022-03-28 10:29:42 +0000 Commit: Andrew Turner CommitDate: 2022-04-19 09:18:02 +0000 Fix a sign mismatch warning in the physmem code Make sure both sides of a comparison are unsigned. As the values being compared are size_t make the the value in the for loop size_t too. Sponsored by: The FreeBSD Foundation (cherry picked from commit f461b95561fff9d7f39942f7a9aba37ba69ed1fe) --- sys/kern/subr_physmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c index ea1ec12dd065..a4b865bed56d 100644 --- a/sys/kern/subr_physmem.c +++ b/sys/kern/subr_physmem.c @@ -95,7 +95,8 @@ long Maxmem; static void physmem_dump_tables(int (*prfunc)(const char *, ...)) { - int flags, i; + size_t i; + int flags; uintmax_t addr, size; const unsigned int mbyte = 1024 * 1024;