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)
Mon, Dec 22, 12:33 AM
Unknown Object (File)
Nov 21 2025, 12:28 AM
Unknown Object (File)
Nov 20 2025, 9:08 PM
Unknown Object (File)
Nov 20 2025, 9:04 PM
Unknown Object (File)
Nov 20 2025, 9:03 PM
Unknown Object (File)
Nov 20 2025, 8:55 PM
Unknown Object (File)
Nov 11 2025, 11:36 PM
Unknown Object (File)
Nov 9 2025, 12:16 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.