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, 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)
Mon, Feb 9, 5:18 AM
Unknown Object (File)
Jan 23 2026, 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
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