aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-05-08 03:28:08 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:07 -0400
commite63340ae6b6205fef26b40a75673d1c9c0c8bb90 (patch)
tree8d3212705515edec73c3936bb9e23c71d34a7b41 /kernel
parent04c9167f91e309c9c4ea982992aa08e83b2eb42e (diff)
header cleaning: don't include smp_lock.h when not used
Remove includes of <linux/smp_lock.h> where it is not used/needed. Suggested by Al Viro. Builds cleanly on x86_64, i386, alpha, ia64, powerpc, sparc, sparc64, and arm (all 59 defconfigs). Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpuset.c1
-rw-r--r--kernel/exit.c1
-rw-r--r--kernel/fork.c1
-rw-r--r--kernel/itimer.c1
-rw-r--r--kernel/kmod.c1
-rw-r--r--kernel/posix-timers.c1
-rw-r--r--kernel/power/process.c1
-rw-r--r--kernel/power/snapshot.c1
-rw-r--r--kernel/power/swap.c1
-rw-r--r--kernel/printk.c1
-rw-r--r--kernel/signal.c1
-rw-r--r--kernel/time.c1
-rw-r--r--kernel/uid16.c1
13 files changed, 0 insertions, 13 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index bde714db2b26..e6d002fc7392 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -42,7 +42,6 @@
42#include <linux/seq_file.h> 42#include <linux/seq_file.h>
43#include <linux/security.h> 43#include <linux/security.h>
44#include <linux/slab.h> 44#include <linux/slab.h>
45#include <linux/smp_lock.h>
46#include <linux/spinlock.h> 45#include <linux/spinlock.h>
47#include <linux/stat.h> 46#include <linux/stat.h>
48#include <linux/string.h> 47#include <linux/string.h>
diff --git a/kernel/exit.c b/kernel/exit.c
index 92369240d91d..f5a7abb621f3 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -7,7 +7,6 @@
7#include <linux/mm.h> 7#include <linux/mm.h>
8#include <linux/slab.h> 8#include <linux/slab.h>
9#include <linux/interrupt.h> 9#include <linux/interrupt.h>
10#include <linux/smp_lock.h>
11#include <linux/module.h> 10#include <linux/module.h>
12#include <linux/capability.h> 11#include <linux/capability.h>
13#include <linux/completion.h> 12#include <linux/completion.h>
diff --git a/kernel/fork.c b/kernel/fork.c
index fd211b9dddd4..a8dd75d4992b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -14,7 +14,6 @@
14#include <linux/slab.h> 14#include <linux/slab.h>
15#include <linux/init.h> 15#include <linux/init.h>
16#include <linux/unistd.h> 16#include <linux/unistd.h>
17#include <linux/smp_lock.h>
18#include <linux/module.h> 17#include <linux/module.h>
19#include <linux/vmalloc.h> 18#include <linux/vmalloc.h>
20#include <linux/completion.h> 19#include <linux/completion.h>
diff --git a/kernel/itimer.c b/kernel/itimer.c
index 307c6a632ef6..4523f3396f23 100644
--- a/kernel/itimer.c
+++ b/kernel/itimer.c
@@ -7,7 +7,6 @@
7/* These are all the functions necessary to implement itimers */ 7/* These are all the functions necessary to implement itimers */
8 8
9#include <linux/mm.h> 9#include <linux/mm.h>
10#include <linux/smp_lock.h>
11#include <linux/interrupt.h> 10#include <linux/interrupt.h>
12#include <linux/syscalls.h> 11#include <linux/syscalls.h>
13#include <linux/time.h> 12#include <linux/time.h>
diff --git a/kernel/kmod.c b/kernel/kmod.c
index 796276141e51..11c584cd16b3 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -23,7 +23,6 @@
23#include <linux/syscalls.h> 23#include <linux/syscalls.h>
24#include <linux/unistd.h> 24#include <linux/unistd.h>
25#include <linux/kmod.h> 25#include <linux/kmod.h>
26#include <linux/smp_lock.h>
27#include <linux/slab.h> 26#include <linux/slab.h>
28#include <linux/mnt_namespace.h> 27#include <linux/mnt_namespace.h>
29#include <linux/completion.h> 28#include <linux/completion.h>
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index 44318ca71978..588c99da0307 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -31,7 +31,6 @@
31 * POSIX clocks & timers 31 * POSIX clocks & timers
32 */ 32 */
33#include <linux/mm.h> 33#include <linux/mm.h>
34#include <linux/smp_lock.h>
35#include <linux/interrupt.h> 34#include <linux/interrupt.h>
36#include <linux/slab.h> 35#include <linux/slab.h>
37#include <linux/time.h> 36#include <linux/time.h>
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 179529dc3819..088419387388 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -8,7 +8,6 @@
8 8
9#undef DEBUG 9#undef DEBUG
10 10
11#include <linux/smp_lock.h>
12#include <linux/interrupt.h> 11#include <linux/interrupt.h>
13#include <linux/suspend.h> 12#include <linux/suspend.h>
14#include <linux/module.h> 13#include <linux/module.h>
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 128da11f01c2..b7039772b05c 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -14,7 +14,6 @@
14#include <linux/module.h> 14#include <linux/module.h>
15#include <linux/mm.h> 15#include <linux/mm.h>
16#include <linux/suspend.h> 16#include <linux/suspend.h>
17#include <linux/smp_lock.h>
18#include <linux/delay.h> 17#include <linux/delay.h>
19#include <linux/bitops.h> 18#include <linux/bitops.h>
20#include <linux/spinlock.h> 19#include <linux/spinlock.h>
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index e83ed9945a80..b8b235cc19d1 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -12,7 +12,6 @@
12 */ 12 */
13 13
14#include <linux/module.h> 14#include <linux/module.h>
15#include <linux/smp_lock.h>
16#include <linux/file.h> 15#include <linux/file.h>
17#include <linux/utsname.h> 16#include <linux/utsname.h>
18#include <linux/version.h> 17#include <linux/version.h>
diff --git a/kernel/printk.c b/kernel/printk.c
index c4c5a29a7bed..0bbdeac2810c 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -20,7 +20,6 @@
20#include <linux/mm.h> 20#include <linux/mm.h>
21#include <linux/tty.h> 21#include <linux/tty.h>
22#include <linux/tty_driver.h> 22#include <linux/tty_driver.h>
23#include <linux/smp_lock.h>
24#include <linux/console.h> 23#include <linux/console.h>
25#include <linux/init.h> 24#include <linux/init.h>
26#include <linux/module.h> 25#include <linux/module.h>
diff --git a/kernel/signal.c b/kernel/signal.c
index 2b4087d545a3..1368e67c8482 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -12,7 +12,6 @@
12 12
13#include <linux/slab.h> 13#include <linux/slab.h>
14#include <linux/module.h> 14#include <linux/module.h>
15#include <linux/smp_lock.h>
16#include <linux/init.h> 15#include <linux/init.h>
17#include <linux/sched.h> 16#include <linux/sched.h>
18#include <linux/fs.h> 17#include <linux/fs.h>
diff --git a/kernel/time.c b/kernel/time.c
index 6d98ab72f38b..f04791f69408 100644
--- a/kernel/time.c
+++ b/kernel/time.c
@@ -31,7 +31,6 @@
31#include <linux/timex.h> 31#include <linux/timex.h>
32#include <linux/capability.h> 32#include <linux/capability.h>
33#include <linux/errno.h> 33#include <linux/errno.h>
34#include <linux/smp_lock.h>
35#include <linux/syscalls.h> 34#include <linux/syscalls.h>
36#include <linux/security.h> 35#include <linux/security.h>
37#include <linux/fs.h> 36#include <linux/fs.h>
diff --git a/kernel/uid16.c b/kernel/uid16.c
index 187e2a423878..dd308ba4e03b 100644
--- a/kernel/uid16.c
+++ b/kernel/uid16.c
@@ -6,7 +6,6 @@
6#include <linux/mm.h> 6#include <linux/mm.h>
7#include <linux/utsname.h> 7#include <linux/utsname.h>
8#include <linux/mman.h> 8#include <linux/mman.h>
9#include <linux/smp_lock.h>
10#include <linux/notifier.h> 9#include <linux/notifier.h>
11#include <linux/reboot.h> 10#include <linux/reboot.h>
12#include <linux/prctl.h> 11#include <linux/prctl.h>