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)
Feb 23 2024, 1:39 AM
Unknown Object (File)
Feb 20 2024, 1:44 AM
Unknown Object (File)
Jan 11 2024, 9:58 PM
Unknown Object (File)
Dec 20 2023, 1:54 AM
Unknown Object (File)
Dec 2 2023, 3:24 AM
Unknown Object (File)
Nov 15 2023, 7:22 AM
Unknown Object (File)
May 23 2023, 1:10 AM
Unknown Object (File)
May 4 2023, 4:39 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

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.