Re: [PATCH v1 1/1] rbtree: Replace kernel.h with the necessary inclusions

From: Andy Shevchenko
Date: Fri Jun 03 2022 - 15:26:47 EST


On Fri, Jun 3, 2022 at 9:16 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, 3 Jun 2022 20:10:12 +0300 Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> > When kernel.h is used in the headers it adds a lot into dependency hell,
> > especially when there are circular dependencies are involved.
> >
> > Replace kernel.h inclusion with the list of what is really being used.
>
> There are surely thousands of files we could do this with.

Yes, but the idea is to touch only (global / generic) headers to clean
up them from kernel.h.

> Is this the
> start of a lifelong project,

Continuation of something which annoys me for a long time. We have not
so many, btw, files that are generic and include kernel.h in the
include/*.

> or is there something special about
> rbtree.h?

Nothing except that header being included in many other modules.

I believe this work goes in conjunction with Ingo's huge clean up
series. Not sure where it's now.

--
With Best Regards,
Andy Shevchenko