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
F142816947: D37485.diff
Fri, Jan 23, 9:28 PM
Unknown Object (File)
Dec 12 2025, 9:49 PM
Unknown Object (File)
Dec 12 2025, 1:45 AM
Unknown Object (File)
Dec 7 2025, 1:52 PM
Unknown Object (File)
Dec 2 2025, 12:17 AM
Unknown Object (File)
Nov 18 2025, 3:09 AM
Unknown Object (File)
Nov 15 2025, 5:32 AM
Unknown Object (File)
Nov 3 2025, 12:31 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