Page MenuHomeFreeBSD

Supply RB_COLOR macro
ClosedPublic

Authored by dougm on Jun 9 2020, 11:14 PM.
Tags
None
Referenced Files
F110425705: D25204.diff
Tue, Feb 18, 7:26 AM
Unknown Object (File)
Wed, Feb 12, 11:06 AM
Unknown Object (File)
Wed, Feb 12, 10:03 AM
Unknown Object (File)
Wed, Feb 12, 9:42 AM
Unknown Object (File)
Wed, Feb 12, 7:50 AM
Unknown Object (File)
Tue, Feb 11, 7:38 PM
Unknown Object (File)
Mon, Feb 10, 8:01 PM
Unknown Object (File)
Wed, Jan 29, 7:31 PM
Subscribers

Details

Summary

Lint kernels define DIAGNOSTIC and depend on RB_COLOR in subr_stats.c. Provide an RB_COLOR macro for them.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Jun 9 2020, 11:14 PM
dougm created this revision.

Include the root-of-tree case.

Same change as before, from the right directory this time.

I'm also happy to just change the subr_stats.c code. Having RB_TREE and ARB_TREE bound tightly like this makes another RB_TREE change I'm considering impossible.

I think this is fine as an interim solution if it fixes the build. I don't see any problem with modifying the stats code as you see fit, though. It was added to FreeBSD only quite recently.

This revision is now accepted and ready to land.Jun 9 2020, 11:53 PM