Commit 1aeb272cf09f9e2cbc62163b9f37a9b4d1c7e81d

Authored by Robert P. J. Day
Committed by Linus Torvalds
1 parent 3a2e7f47d7

kernel: explicitly include required header files under kernel/

Following an experimental deletion of the unnecessary directive

 #include <linux/slab.h>

from the header file <linux/percpu.h>, these files under kernel/ were exposed
as needing to include one of <linux/slab.h> or <linux/gfp.h>, so explicit
includes were added where necessary.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 9 changed files with 9 additions and 0 deletions Side-by-side Diff

1 1 #include <linux/module.h>
2 2 #include <linux/interrupt.h>
3 3 #include <linux/device.h>
  4 +#include <linux/gfp.h>
4 5  
5 6 /*
6 7 * Device resource management aware IRQ request/free implementation.
... ... @@ -11,6 +11,7 @@
11 11 #include <linux/module.h>
12 12 #include <linux/random.h>
13 13 #include <linux/interrupt.h>
  14 +#include <linux/slab.h>
14 15  
15 16 #include "internals.h"
16 17  
... ... @@ -23,6 +23,7 @@
23 23 #include <linux/rcupdate.h>
24 24 #include <linux/marker.h>
25 25 #include <linux/err.h>
  26 +#include <linux/slab.h>
26 27  
27 28 extern struct marker __start___markers[];
28 29 extern struct marker __stop___markers[];
... ... @@ -7,6 +7,7 @@
7 7 #include <linux/module.h>
8 8 #include <linux/cgroup.h>
9 9 #include <linux/fs.h>
  10 +#include <linux/slab.h>
10 11  
11 12 struct ns_cgroup {
12 13 struct cgroup_subsys_state css;
... ... @@ -45,6 +45,7 @@
45 45 #include <linux/byteorder/swabb.h>
46 46 #include <linux/stat.h>
47 47 #include <linux/srcu.h>
  48 +#include <linux/slab.h>
48 49  
49 50 MODULE_LICENSE("GPL");
50 51 MODULE_AUTHOR("Paul E. McKenney <paulmck@us.ibm.com> and "
kernel/res_counter.c
... ... @@ -10,6 +10,7 @@
10 10 #include <linux/types.h>
11 11 #include <linux/parser.h>
12 12 #include <linux/fs.h>
  13 +#include <linux/slab.h>
13 14 #include <linux/res_counter.h>
14 15 #include <linux/uaccess.h>
15 16  
... ... @@ -35,6 +35,7 @@
35 35 #include <linux/syscalls.h>
36 36 #include <linux/security.h>
37 37 #include <linux/fs.h>
  38 +#include <linux/slab.h>
38 39  
39 40 #include <asm/uaccess.h>
40 41 #include <asm/unistd.h>
kernel/user_namespace.c
... ... @@ -8,6 +8,7 @@
8 8 #include <linux/module.h>
9 9 #include <linux/version.h>
10 10 #include <linux/nsproxy.h>
  11 +#include <linux/slab.h>
11 12 #include <linux/user_namespace.h>
12 13  
13 14 /*
... ... @@ -14,6 +14,7 @@
14 14 #include <linux/utsname.h>
15 15 #include <linux/version.h>
16 16 #include <linux/err.h>
  17 +#include <linux/slab.h>
17 18  
18 19 /*
19 20 * Clone a new ns copying an original utsname, setting refcount to 1