From nobody Tue Nov 29 01:10:59 2022 X-Original-To: dev-commits-src-main@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 4NLkmg4sFPz4jSVr; Tue, 29 Nov 2022 01:10:59 +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 4NLkmg3VY7z42yG; Tue, 29 Nov 2022 01:10:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669684259; 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=UuCx5KeYL2qG4DmSTfmPpPdWr98dY89g0aTMUz9QiQM=; b=wwH+dK66TbfE6DZBC+YdYjy8VqWhFn6+nhobTct9RbNgdmyHQ79Wy885ReSQ5dyToLtCpF aPNTOhylAytWmAC0A2cii7mz+JEwiUOGy0eDYTcSOupsYj8wxDX3xq14f46FYS1KuKjzIY HyUKrohKQ5QIkiYpZtzCODuUIE0pFVHo6btN3b8GpFzdtJaI0LKu1ygxRgJ0B4q8XloFxr 828vo+k58I7iInS6eEOh6BYh2nB5EPsCdncGa4DgMSXMlwNxvF5vGv4toSxkoJJ3rWbTZ6 qIhG5Wg75b0A+5oaqIKKcJf4Biz5F1aluMuz3wJ/+5uq0q6zsDXSUWHNB1uuTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669684259; 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=UuCx5KeYL2qG4DmSTfmPpPdWr98dY89g0aTMUz9QiQM=; b=aNEnWZsljosc0Ow5bVbczH0Z4txyBan/OJvBHoHgCO01k/a1m0PcjwcVCG3i+QP9LkjZsT UzPZ27pmyOetsQMQS+zTlrAJToWBrXDC5zsX+FdfhOQ+4cix46lofVCjSm8N7zLVaYb0Dj 1oLpOfzM3ZjBiAOClZuEx6VU5dF3wuYCW1+9qRQIdbJm5yeZLmengaVPRxu2ZAzznsfTrH rCQuynOWbOuSGfes7ZJaKO/c6fh7KkePpGi7KsyR7i9dkru+nMLydPPUvvgLKidf7Yj5OI IUY1TWinoJ6KoGGed4Y+ub3Rzp4kk7eAdzp73ssfuEQ3grIRD9UiN6T3jIrP4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669684259; a=rsa-sha256; cv=none; b=E5gE1cM6Nx67Qfslhoc3X0Jrp9Im5x8o9gdPMHVPr/ze6zeXR5kI59obOaIDIRtIzBlFbs DHBVgpoom0hOcLRMVjf7TEjMZIMX6ZCNiA+AdDURqKVD2VGwlKyRZEK5hvOuYoC/OYnEdb FXVfAkTUqbdx8wNI9byX1b54x/zoUpzSsgOhRCPaLzhWu79IQuaq96O1WqA1hGmti4IRYU m3DhKnxC9zGb0fB8uS4zGpzmYQUif7oaWyLjbaHwqUChtyxzD6Raw+R7RH1yfCT2R1BDK7 FWZEcgfPb4cOaO3qDq5X0yIvCARRuP6Tm24hMz62ufyDD97UubLfZVehMSSIqw== 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 4NLkmg2bZ7zygQ; Tue, 29 Nov 2022 01:10:59 +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 2AT1Ax5K045294; Tue, 29 Nov 2022 01:10:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AT1AxrE045293; Tue, 29 Nov 2022 01:10:59 GMT (envelope-from git) Date: Tue, 29 Nov 2022 01:10:59 GMT Message-Id: <202211290110.2AT1AxrE045293@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 15cebe3d637f - main - bhyve: Fix sign compare warnings in the NVMe device model. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 15cebe3d637f70abd1ee95e2745d6676d9b1e7dd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=15cebe3d637f70abd1ee95e2745d6676d9b1e7dd commit 15cebe3d637f70abd1ee95e2745d6676d9b1e7dd Author: John Baldwin AuthorDate: 2022-11-29 01:09:44 +0000 Commit: John Baldwin CommitDate: 2022-11-29 01:09:44 +0000 bhyve: Fix sign compare warnings in the NVMe device model. Reviewed by: corvink Differential Revision: https://reviews.freebsd.org/D37489 --- usr.sbin/bhyve/pci_nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index edbac73c7ed5..a66b0abc2cc2 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -798,7 +798,7 @@ pci_nvme_aer_limit_reached(struct pci_nvme_softc *sc) struct nvme_controller_data *cd = &sc->ctrldata; /* AERL is a zero based value while aer_count is one's based */ - return (sc->aer_count == (cd->aerl + 1)); + return (sc->aer_count == (cd->aerl + 1U)); } /* @@ -3243,7 +3243,7 @@ pci_nvme_parse_config(struct pci_nvme_softc *sc, nvlist_t *nvl) else if (sc->nvstore.type != NVME_STOR_RAM) sc->nvstore.sectsz = blockif_sectsz(sc->nvstore.ctx); for (sc->nvstore.sectsz_bits = 9; - (1 << sc->nvstore.sectsz_bits) < sc->nvstore.sectsz; + (1U << sc->nvstore.sectsz_bits) < sc->nvstore.sectsz; sc->nvstore.sectsz_bits++); if (sc->max_queues <= 0 || sc->max_queues > NVME_QUEUES)