This change modifies code paths and uses __used to address -Wunused
issues that occur when THUNDERBOLT_DEBUG == 0.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 71082 Build 67965: arc lint + arc unit
Event Timeline
Comment Actions
thanks for this!
in general, can't we just use __used on maybe-unused declarations? smaller diff & more idiomatic wrt having sc defined everywhere without doing r->sc. but I'm nitpicking here so I'm okay with accepting this as is
| sys/dev/thunderbolt/nhi.c | ||
|---|---|---|
| 908–911 | why don't we just use __used here as suggested in the description of this revision? | |
| sys/dev/thunderbolt/tb_debug.h | ||
| 84 | why this change? Do we want this code to be built if THUNDERBOLT_DEBUG is 0? but also if we wanted to preserve the existing logic we could simplify the previous check with just #if THUNDERBOLT_DEBUG > 0 since undefined identifiers evaluate to 0. | |