diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-11-08 18:32:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-09 10:02:49 -0800 |
commit | b4b87651104dd32ab258d097d47b97e243a95222 (patch) | |
tree | eadcfeeb9ba49832d6b3e9860ae75e835a8df370 /include | |
parent | 98e1385ef24bd607586fbf44e73decd5112d3d4a (diff) | |
download | linux-b4b87651104dd32ab258d097d47b97e243a95222.tar.bz2 |
include/linux/generic-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.
[akpm@linux-foundation.org: include math.h for round_up()]
Link: https://lkml.kernel.org/r/20211027150548.80042-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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/generic-radix-tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/generic-radix-tree.h b/include/linux/generic-radix-tree.h index bfd00320c7f3..107613f7d792 100644 --- a/include/linux/generic-radix-tree.h +++ b/include/linux/generic-radix-tree.h @@ -38,8 +38,9 @@ #include <asm/page.h> #include <linux/bug.h> -#include <linux/kernel.h> #include <linux/log2.h> +#include <linux/math.h> +#include <linux/types.h> struct genradix_root; |