After ab4fad4be14462e347ed24ee3663a18eacfb138e tcp_lro_log became only
used if TCPHPTS was defined. Annotate it with __unused to suppress a
warning from gcc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 37141 Build 34030: arc lint + arc unit
Event Timeline
Comment Actions
question
If we put the wrap
#ifdef TCPHPTS
#endif
Around the function do we still need __unused for gcc?
(it won't be unused of course if TCPHPTS is defined)
Comment Actions
Right, that would work too. Is that your preference?
My thought was that it wasn't clear to me that tcp_lro_log was really related to TCPHPTS. If other tcp_lro code wanted to call it, would it then have to change the ifdef? But I will defer to your judgement there.