From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Tue, 9 Nov 2021 02:32:38 +0000 (-0800)
Subject: include/linux/radix-tree.h: replace kernel.h with the necessary inclusions
X-Git-Tag: locking-urgent-2021-11-14~31^2~64
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=98e1385ef24bd607586fbf44e73decd5112d3d4a;p=users%2Fdwmw2%2Flinux.git

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.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h
index 64ad900ac7422..f7c1d21c2f39d 100644
--- a/include/linux/radix-tree.h
+++ b/include/linux/radix-tree.h
@@ -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>