percpu_ref: Replace kernel.h with the necessary inclusions
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- include/linux/percpu-refcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/percpu-refcount.h +1 -1
@@ -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 ;
Signature · 1 line
2.33.0
Hello,
Quoted 28 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Signed-off-by Andy Shevchenko <[email protected]>--- include/linux/percpu-refcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/percpu-refcount.h +1
-1@@ -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 ;Signature · 1 line
2.33.0
Applied to for-5.16-fixes.
Thanks,
Dennis