sbitmap: Replace kernel.h with the necessary inclusions
PATCH 1/1 sbitmap: 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.
Signed-off-by Andy Shevchenko <[email protected]>
--- include/linux/sbitmap.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
include/linux/sbitmap.h +10 -1
@@ -9,8 +9,17 @@#ifndef __LINUX_SCALE_BITMAP_H#define __LINUX_SCALE_BITMAP_H -#include <linux/kernel.h> +#include <linux/atomic.h> +#include <linux/bitops.h> +#include <linux/cache.h> +#include <linux/list.h> +#include <linux/log2.h> +#include <linux/minmax.h> +#include <linux/percpu.h> #include <linux/slab.h> +#include <linux/smp.h> +#include <linux/types.h> +#include <linux/wait.h> struct seq_file ;
Signature · 1 line
2.33.0