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)
Tue, Oct 14, 2:54 PM
Unknown Object (File)
Sun, Oct 12, 7:25 AM
Unknown Object (File)
Thu, Oct 9, 11:31 AM
Unknown Object (File)
Wed, Oct 8, 7:38 AM
Unknown Object (File)
Fri, Oct 3, 4:03 PM
Unknown Object (File)
Thu, Oct 2, 12:46 PM
Unknown Object (File)
Sep 17 2025, 8:49 AM
Unknown Object (File)
Sep 12 2025, 5:31 AM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.