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)
Sun, May 5, 2:21 AM
Unknown Object (File)
Thu, Apr 25, 5:52 AM
Unknown Object (File)
Feb 15 2024, 9:42 AM
Unknown Object (File)
Feb 15 2024, 9:42 AM
Unknown Object (File)
Feb 15 2024, 9:42 AM
Unknown Object (File)
Feb 15 2024, 8:49 AM
Unknown Object (File)
Jan 15 2024, 12:24 AM
Unknown Object (File)
Dec 23 2023, 2:51 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