Page MenuHomeFreeBSD

rb_tree: silence unused function warnings
ClosedPublic

Authored by dougm on Sep 18 2022, 3:52 AM.
Tags
None
Referenced Files
F83163970: D36617.diff
Tue, May 7, 6:02 AM
Unknown Object (File)
Jan 12 2024, 2:23 PM
Unknown Object (File)
Nov 30 2023, 7:30 PM
Unknown Object (File)
Oct 7 2023, 11:08 PM
Unknown Object (File)
Sep 18 2023, 1:06 PM
Unknown Object (File)
Jun 21 2023, 4:55 AM
Unknown Object (File)
Jun 15 2023, 1:17 PM
Unknown Object (File)
Apr 7 2023, 2:50 PM
Subscribers

Details

Summary

With DIAGNOSTIC set a kernel build generates warnings about the defined-but-unused RB_RANK method. Don't set _RB_DIAGNOSTIC automatically, to silence these warnings.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm requested review of this revision.Sep 18 2022, 3:52 AM
dougm created this revision.

Alternately, I think we could work around this by annotating the generated function with "inline".

This revision is now accepted and ready to land.Sep 18 2022, 8:32 AM
This revision was automatically updated to reflect the committed changes.