Page MenuHomeFreeBSD

bhyve: Fix sign compare warnings in the e1000 device model.
ClosedPublic

Authored by jhb on Nov 23 2022, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 18, 3:09 AM
Unknown Object (File)
Sat, Nov 15, 5:32 AM
Unknown Object (File)
Mon, Nov 3, 12:31 PM
Unknown Object (File)
Sun, Nov 2, 11:44 PM
Unknown Object (File)
Fri, Oct 31, 10:55 PM
Unknown Object (File)
Thu, Oct 30, 5:00 AM
Unknown Object (File)
Oct 20 2025, 8:17 AM
Unknown Object (File)
Oct 17 2025, 2:32 PM
Subscribers

Details

Summary

Adding a bare constant to a uint16_t promotes to a signed int which
triggers these warnings. Changing the constant to be explicitly
unsigned instead promotes the expression to unsigned int.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48476
Build 45362: arc lint + arc unit