aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-12-09 14:30:33 +0200
committerDennis Zhou <dennis@kernel.org>2021-12-09 15:41:09 -0500
commita4f1192cb53758a7210ed5a9ee695aeba22f75fb (patch)
tree3a30292f6a8a371c4bb552a011e40871506704c9
parentpercpu: km: ensure it is used with NOMMU (either UP or SMP) (diff)
downloadlinux-dev-a4f1192cb53758a7210ed5a9ee695aeba22f75fb.tar.xz
linux-dev-a4f1192cb53758a7210ed5a9ee695aeba22f75fb.zip
percpu_ref: 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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Dennis Zhou <dennis@kernel.org>
-rw-r--r--include/linux/percpu-refcount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h
index b31d3f3312ce..d73a1c08c3e3 100644
--- a/include/linux/percpu-refcount.h
+++ b/include/linux/percpu-refcount.h
@@ -51,9 +51,9 @@
#define _LINUX_PERCPU_REFCOUNT_H
#include <linux/atomic.h>
-#include <linux/kernel.h>
#include <linux/percpu.h>
#include <linux/rcupdate.h>
+#include <linux/types.h>
#include <linux/gfp.h>
struct percpu_ref;