]> Git Repo - linux.git/commitdiff
include/linux/radix-tree.h: replace kernel.h with the necessary inclusions
authorAndy Shevchenko <[email protected]>
Tue, 9 Nov 2021 02:32:38 +0000 (18:32 -0800)
committerLinus Torvalds <[email protected]>
Tue, 9 Nov 2021 18:02:49 +0000 (10:02 -0800)
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/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/radix-tree.h

index 64ad900ac74224eeff8012d8493460078cedb25d..f7c1d21c2f39dbe5564a9d3238f923f886d2500e 100644 (file)
@@ -9,8 +9,10 @@
 #define _LINUX_RADIX_TREE_H
 
 #include <linux/bitops.h>
-#include <linux/kernel.h>
+#include <linux/gfp.h>
 #include <linux/list.h>
+#include <linux/lockdep.h>
+#include <linux/math.h>
 #include <linux/percpu.h>
 #include <linux/preempt.h>
 #include <linux/rcupdate.h>
This page took 0.060096 seconds and 4 git commands to generate.