Page MenuHomeFreeBSD

Mark __inline functions which are not neccessarily used, with __unused.
ClosedPublic

Authored by trasz on May 7 2019, 5:53 PM.
Tags
None
Referenced Files
F160198724: D20185.id57140.diff
Mon, Jun 22, 2:46 AM
Unknown Object (File)
Sun, Jun 21, 11:59 AM
Unknown Object (File)
Thu, Jun 18, 5:21 AM
Unknown Object (File)
May 20 2026, 11:31 AM
Unknown Object (File)
May 14 2026, 4:01 AM
Unknown Object (File)
May 9 2026, 4:49 PM
Unknown Object (File)
May 9 2026, 4:46 PM
Unknown Object (File)
May 8 2026, 7:59 PM
Subscribers

Details

Summary

Mark inline functions with unused; prevents compiler warning when they end up being unused.

Obtained from: OpenBSD

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24136
Build 22989: arc lint + arc unit

Event Timeline

It is very strange selection of functions. Why that set and not another ?

Either we mark some functions as __unused when we get specific warnings, or we mark everything. Look for instance at r321512.

Not sure what do you mean. I think I've marked all __inline functions there?

Not sure what do you mean. I think I've marked all __inline functions there?

Well, the commit message should be very different then. 'Which are not neccessary used' does not imply 'all inlines (or static)', and of course I did not even look into 1KLoC file to confirm that.

That was copy/paste from OpenBSD's commit message, but okay. How about now?

This revision is now accepted and ready to land.May 8 2019, 4:13 PM
This revision was automatically updated to reflect the committed changes.