Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102714422
D37489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
747 B
Referenced Files
None
Subscribers
None
D37489.diff
View Options
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c
--- a/usr.sbin/bhyve/pci_nvme.c
+++ b/usr.sbin/bhyve/pci_nvme.c
@@ -798,7 +798,7 @@
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 @@
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)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 6:16 AM (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14671619
Default Alt Text
D37489.diff (747 B)
Attached To
Mode
D37489: bhyve: Fix sign compare warnings in the NVMe device model.
Attached
Detach File
Event Timeline
Log In to Comment