Skip to content

Commit a4f1192

Browse files
andy-shevdennisszhou
authored andcommitted
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]> Signed-off-by: Dennis Zhou <[email protected]>
1 parent 3583521 commit a4f1192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/percpu-refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
#define _LINUX_PERCPU_REFCOUNT_H
5252

5353
#include <linux/atomic.h>
54-
#include <linux/kernel.h>
5554
#include <linux/percpu.h>
5655
#include <linux/rcupdate.h>
56+
#include <linux/types.h>
5757
#include <linux/gfp.h>
5858

5959
struct percpu_ref;

0 commit comments

Comments
 (0)