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)
Sat, Jul 11, 8:28 PM
Unknown Object (File)
Sat, Jul 4, 9:37 AM
Unknown Object (File)
Fri, Jul 3, 4:26 PM
Unknown Object (File)
Fri, Jul 3, 4:05 PM
Unknown Object (File)
Wed, Jun 24, 5:07 AM
Unknown Object (File)
Sat, Jun 20, 6:26 AM
Unknown Object (File)
May 13 2026, 2:51 PM
Unknown Object (File)
May 13 2026, 2:05 AM
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