git: f995c129a527 - stable/13 - bhyve: Fix sign compare warnings in the NVMe device model.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jan 2023 20:27:16 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=f995c129a52788c97fb1caa02fc0bd53c31ef3d4
commit f995c129a52788c97fb1caa02fc0bd53c31ef3d4
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-11-29 01:09:44 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 20:24:04 +0000
bhyve: Fix sign compare warnings in the NVMe device model.
Reviewed by: corvink
Differential Revision: https://reviews.freebsd.org/D37489
(cherry picked from commit 15cebe3d637f70abd1ee95e2745d6676d9b1e7dd)
---
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)