Page MenuHomeFreeBSD

libcuse: silence -Wthread-safety-analysis warnings
AcceptedPublic

Authored by arichardson on Sep 14 2025, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 16, 8:31 AM
Unknown Object (File)
Sat, Jan 10, 3:35 PM
Unknown Object (File)
Sat, Jan 10, 5:42 AM
Unknown Object (File)
Sat, Jan 10, 4:50 AM
Unknown Object (File)
Sat, Jan 10, 4:35 AM
Unknown Object (File)
Fri, Jan 9, 7:18 PM
Unknown Object (File)
Wed, Jan 7, 9:05 PM
Unknown Object (File)
Tue, Jan 6, 10:34 AM
Subscribers

Details

Summary

The init function does not need to aquire a lock for TAILQ_INIT, so just
add __no_lock_analysis. We could also acquire the lock to silence the
analysis but that is unnecessary.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 67025
Build 63908: arc lint + arc unit

Event Timeline

arichardson created this revision.

No objection, seems fine. This will be the first use I believe?

This revision is now accepted and ready to land.Dec 17 2025, 7:22 PM