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, Mar 17, 10:39 AM
Unknown Object (File)
Tue, Mar 17, 2:08 AM
Unknown Object (File)
Mon, Mar 16, 9:49 PM
Unknown Object (File)
Sat, Feb 28, 7:32 AM
Unknown Object (File)
Sat, Feb 28, 3:15 AM
Unknown Object (File)
Tue, Feb 24, 10:50 PM
Unknown Object (File)
Feb 9 2026, 5:18 AM
Unknown Object (File)
Jan 23 2026, 9:28 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 Not Applicable
Unit
Tests Not Applicable