]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rb_tree: restore binary compat w/ 13
authorDoug Moore <dougm@FreeBSD.org>
Fri, 16 Dec 2022 09:15:28 +0000 (03:15 -0600)
committerDoug Moore <dougm@FreeBSD.org>
Fri, 16 Dec 2022 09:15:28 +0000 (03:15 -0600)
commitd8a88ec381498f5942403088d28ee325b92e9a78
tree17a12cbd22ba7403e2a013da81cf5c57b30676d7
parentf05c00dc63fa4ac1b1000d976128d68834fec70e
rb_tree: restore binary compat w/ 13

A change to RB_COLOR_INSERT, when merged into stable/13, broke binary
compatibility. For 13, call the new function RB_DO_COLOR_INSERT, and
restore the old function with the original name and parameters. Define
RB_COLOR_INSERT in tree.h, and remove changes to the linux rbtree
header.

Another change altered the order of pointers in the RB_ENTRY struct.
For 13, restore the original order.

Reported by: manu
Reviewed by: hselasky
Tested by: manu
Differential Revision: https://reviews.freebsd.org/D37716
sys/compat/linuxkpi/common/include/linux/rbtree.h
sys/sys/tree.h