Re: [patch 22/50] rbtree: Split out the rbtree type definitions
From: Peter Zijlstra
Date: Wed Jul 14 2021 - 05:24:35 EST
On Tue, Jul 13, 2021 at 05:11:16PM +0200, Thomas Gleixner wrote:
> From: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
>
> rtmutex.h needs the definition of struct rb_root_cached. rbtree.h includes
> kernel.h which includes spinlock.h. That works nicely for non-RT enabled
> kernels, but on RT enabled kernels spinlocks are based on rtmutexes which
> creates another circular header dependency as spinlocks.h will require
> rtmutex.h.
>
> Split out the type definitions and move them into their own header file so
> the rtmutex header can include just those.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> include/linux/rbtree.h | 30 +-----------------------------
> include/linux/rbtree_types.h | 34 ++++++++++++++++++++++++++++++++++
This will mess up the tools/include/linux/ copy of these headers...