Page MenuHomeFreeBSD

sfxge(4): fix comparison always true warning
ClosedPublic

Authored by arybchik on Nov 21 2018, 11:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 21 2024, 12:13 PM
Unknown Object (File)
Oct 3 2024, 10:19 AM
Unknown Object (File)
Oct 2 2024, 6:15 PM
Unknown Object (File)
Oct 2 2024, 5:52 AM
Unknown Object (File)
Oct 1 2024, 6:22 AM
Unknown Object (File)
Sep 27 2024, 12:46 PM
Unknown Object (File)
Sep 26 2024, 6:15 PM
Unknown Object (File)
Sep 24 2024, 2:35 PM
Subscribers

Details

Summary

Loopback type used as bit index has efx_loopback_type_t type
which is enum. clang complains that it is always true when it
is compared with qword (64 bit) bits number boundary.

Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week

Test Plan

amd64 tinderbox kernel builds tested
driver loaded/unloaded, interfaces up/down, traffic works fine

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21086
Build 20449: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 29 2018, 6:44 AM
This revision was automatically updated to reflect the committed changes.