diff options
author | Tim Schmielau <tim@physik3.uni-rostock.de> | 2007-02-14 03:33:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:54 -0500 |
commit | cd354f1ae75e6466a7e31b727faede57a1f89ca5 (patch) | |
tree | 09a2da1672465fefbc7fe06ff4e6084f1dd14c6b /net/core | |
parent | 3fc605a2aa38899c12180ca311f1eeb61a6d867e (diff) |
[PATCH] remove many unneeded #includes of sched.h
After Al Viro (finally) succeeded in removing the sched.h #include in module.h
recently, it makes sense again to remove other superfluous sched.h includes.
There are quite a lot of files which include it but don't actually need
anything defined in there. Presumably these includes were once needed for
macros that used to live in sched.h, but moved to other header files in the
course of cleaning it up.
To ease the pain, this time I did not fiddle with any header files and only
removed #includes from .c-files, which tend to cause less trouble.
Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
configs in arch/arm/configs on arm. I also checked that no new warnings were
introduced by the patch (actually, some warnings are removed that were emitted
by unnecessarily included header files).
Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev_mcast.c | 1 | ||||
-rw-r--r-- | net/core/dst.c | 1 | ||||
-rw-r--r-- | net/core/filter.c | 1 | ||||
-rw-r--r-- | net/core/iovec.c | 1 | ||||
-rw-r--r-- | net/core/neighbour.c | 1 | ||||
-rw-r--r-- | net/core/rtnetlink.c | 1 | ||||
-rw-r--r-- | net/core/skbuff.c | 1 |
7 files changed, 0 insertions, 7 deletions
diff --git a/net/core/dev_mcast.c b/net/core/dev_mcast.c index c4e754e86e..56b310c0c8 100644 --- a/net/core/dev_mcast.c +++ b/net/core/dev_mcast.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/bitops.h> | 27 | #include <linux/bitops.h> |
28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
29 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
30 | #include <linux/sched.h> | ||
31 | #include <linux/string.h> | 30 | #include <linux/string.h> |
32 | #include <linux/mm.h> | 31 | #include <linux/mm.h> |
33 | #include <linux/socket.h> | 32 | #include <linux/socket.h> |
diff --git a/net/core/dst.c b/net/core/dst.c index 61dd9d3951..764bccb3d9 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/mm.h> | 12 | #include <linux/mm.h> |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/netdevice.h> | 14 | #include <linux/netdevice.h> |
15 | #include <linux/sched.h> | ||
16 | #include <linux/skbuff.h> | 15 | #include <linux/skbuff.h> |
17 | #include <linux/string.h> | 16 | #include <linux/string.h> |
18 | #include <linux/types.h> | 17 | #include <linux/types.h> |
diff --git a/net/core/filter.c b/net/core/filter.c index 8123a31d91..8d185a089c 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/types.h> | 20 | #include <linux/types.h> |
21 | #include <linux/sched.h> | ||
22 | #include <linux/mm.h> | 21 | #include <linux/mm.h> |
23 | #include <linux/fcntl.h> | 22 | #include <linux/fcntl.h> |
24 | #include <linux/socket.h> | 23 | #include <linux/socket.h> |
diff --git a/net/core/iovec.c b/net/core/iovec.c index 4fb1cb9b79..755c37fdae 100644 --- a/net/core/iovec.c +++ b/net/core/iovec.c | |||
@@ -18,7 +18,6 @@ | |||
18 | 18 | ||
19 | #include <linux/errno.h> | 19 | #include <linux/errno.h> |
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/sched.h> | ||
22 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
23 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
24 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 512eed9178..a1525fb7a8 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/socket.h> | 21 | #include <linux/socket.h> |
22 | #include <linux/sched.h> | ||
23 | #include <linux/netdevice.h> | 22 | #include <linux/netdevice.h> |
24 | #include <linux/proc_fs.h> | 23 | #include <linux/proc_fs.h> |
25 | #ifdef CONFIG_SYSCTL | 24 | #ifdef CONFIG_SYSCTL |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index ee5a787271..6055074c4b 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/types.h> | 21 | #include <linux/types.h> |
22 | #include <linux/socket.h> | 22 | #include <linux/socket.h> |
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/sched.h> | ||
25 | #include <linux/timer.h> | 24 | #include <linux/timer.h> |
26 | #include <linux/string.h> | 25 | #include <linux/string.h> |
27 | #include <linux/sockios.h> | 26 | #include <linux/sockios.h> |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 3d56468690..f89ff151cf 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/module.h> | 41 | #include <linux/module.h> |
42 | #include <linux/types.h> | 42 | #include <linux/types.h> |
43 | #include <linux/kernel.h> | 43 | #include <linux/kernel.h> |
44 | #include <linux/sched.h> | ||
45 | #include <linux/mm.h> | 44 | #include <linux/mm.h> |
46 | #include <linux/interrupt.h> | 45 | #include <linux/interrupt.h> |
47 | #include <linux/in.h> | 46 | #include <linux/in.h> |