rbtree: move some implementation details from rbtree.h to rbtree.c
authorMichel Lespinasse <walken@google.com>
Wed, 20 Dec 2017 17:01:47 +0000 (18:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Dec 2017 17:01:47 +0000 (18:01 +0100)
commit33dcdc8ae0b35d9811126f8b7f5566bfde3295c8
tree3852298fb76819d33bd2732d9074bc8a29179d96
parent5c94f9163fe1b62765d885db35ed92e786902c97
rbtree: move some implementation details from rbtree.h to rbtree.c

rbtree users must use the documented APIs to manipulate the tree
structure.  Low-level helpers to manipulate node colors and parenthood are
not part of that API, so move them to lib/rbtree.c

Signed-off-by: Michel Lespinasse <walken@google.com>
Acked-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[Linux commit bf7ad8eeab995710c766df49c9c69a8592ca0216]

Ported to Xen.

Signed-off-by: Praveen Kumar <kpraveen.lkml@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/rbtree.c
xen/include/xen/rbtree.h