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
F109834768: D37485.diff
Mon, Feb 10, 3:23 AM
Unknown Object (File)
Thu, Jan 30, 9:55 PM
Unknown Object (File)
Sun, Jan 26, 6:05 PM
Unknown Object (File)
Fri, Jan 24, 4:58 PM
Unknown Object (File)
Thu, Jan 23, 6:33 PM
Unknown Object (File)
Jan 10 2025, 9:04 AM
Unknown Object (File)
Dec 24 2024, 3:21 AM
Unknown Object (File)
Dec 21 2024, 9:42 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