Commit 4815a360 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by akpm

include/linux/rbtree.h: replace kernel.h with the necessary inclusions

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.

Link: https://lkml.kernel.org/r/20220603171012.48880-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent a91befde
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#ifndef _LINUX_RBTREE_H #ifndef _LINUX_RBTREE_H
#define _LINUX_RBTREE_H #define _LINUX_RBTREE_H
#include <linux/container_of.h>
#include <linux/rbtree_types.h> #include <linux/rbtree_types.h>
#include <linux/kernel.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment