提交 98e1385e 编写于 作者: A Andy Shevchenko 提交者: Linus Torvalds

include/linux/radix-tree.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/20211027150528.80003-1-andriy.shevchenko@linux.intel.comSigned-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 1fcbd5de
...@@ -9,8 +9,10 @@ ...@@ -9,8 +9,10 @@
#define _LINUX_RADIX_TREE_H #define _LINUX_RADIX_TREE_H
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/kernel.h> #include <linux/gfp.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/lockdep.h>
#include <linux/math.h>
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/preempt.h> #include <linux/preempt.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册