diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-05-08 03:28:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:07 -0400 |
commit | e63340ae6b6205fef26b40a75673d1c9c0c8bb90 (patch) | |
tree | 8d3212705515edec73c3936bb9e23c71d34a7b41 /drivers/char | |
parent | 04c9167f91e309c9c4ea982992aa08e83b2eb42e (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 'drivers/char')
-rw-r--r-- | drivers/char/ds1620.c | 1 | ||||
-rw-r--r-- | drivers/char/dsp56k.c | 1 | ||||
-rw-r--r-- | drivers/char/dtlk.c | 1 | ||||
-rw-r--r-- | drivers/char/ec3104_keyb.c | 1 | ||||
-rw-r--r-- | drivers/char/hangcheck-timer.c | 1 | ||||
-rw-r--r-- | drivers/char/ip27-rtc.c | 1 | ||||
-rw-r--r-- | drivers/char/lp.c | 1 | ||||
-rw-r--r-- | drivers/char/mem.c | 1 | ||||
-rw-r--r-- | drivers/char/mxser.c | 1 | ||||
-rw-r--r-- | drivers/char/mxser_new.c | 1 | ||||
-rw-r--r-- | drivers/char/ppdev.c | 1 | ||||
-rw-r--r-- | drivers/char/sysrq.c | 1 | ||||
-rw-r--r-- | drivers/char/vc_screen.c | 1 | ||||
-rw-r--r-- | drivers/char/watchdog/omap_wdt.c | 1 |
14 files changed, 0 insertions, 14 deletions
diff --git a/drivers/char/ds1620.c b/drivers/char/ds1620.c index 3d7efc26aad6..334ad5bbe6b6 100644 --- a/drivers/char/ds1620.c +++ b/drivers/char/ds1620.c | |||
@@ -4,7 +4,6 @@ | |||
4 | */ | 4 | */ |
5 | #include <linux/module.h> | 5 | #include <linux/module.h> |
6 | #include <linux/miscdevice.h> | 6 | #include <linux/miscdevice.h> |
7 | #include <linux/smp_lock.h> | ||
8 | #include <linux/delay.h> | 7 | #include <linux/delay.h> |
9 | #include <linux/proc_fs.h> | 8 | #include <linux/proc_fs.h> |
10 | #include <linux/capability.h> | 9 | #include <linux/capability.h> |
diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c index db984e481d4c..9b8278e1f4f8 100644 --- a/drivers/char/dsp56k.c +++ b/drivers/char/dsp56k.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/fs.h> | 32 | #include <linux/fs.h> |
33 | #include <linux/mm.h> | 33 | #include <linux/mm.h> |
34 | #include <linux/init.h> | 34 | #include <linux/init.h> |
35 | #include <linux/smp_lock.h> | ||
36 | #include <linux/device.h> | 35 | #include <linux/device.h> |
37 | 36 | ||
38 | #include <asm/atarihw.h> | 37 | #include <asm/atarihw.h> |
diff --git a/drivers/char/dtlk.c b/drivers/char/dtlk.c index d8dbdb916232..9695f88badc6 100644 --- a/drivers/char/dtlk.c +++ b/drivers/char/dtlk.c | |||
@@ -62,7 +62,6 @@ | |||
62 | #include <linux/init.h> /* for __init, module_{init,exit} */ | 62 | #include <linux/init.h> /* for __init, module_{init,exit} */ |
63 | #include <linux/poll.h> /* for POLLIN, etc. */ | 63 | #include <linux/poll.h> /* for POLLIN, etc. */ |
64 | #include <linux/dtlk.h> /* local header file for DoubleTalk values */ | 64 | #include <linux/dtlk.h> /* local header file for DoubleTalk values */ |
65 | #include <linux/smp_lock.h> | ||
66 | 65 | ||
67 | #ifdef TRACING | 66 | #ifdef TRACING |
68 | #define TRACE_TEXT(str) printk(str); | 67 | #define TRACE_TEXT(str) printk(str); |
diff --git a/drivers/char/ec3104_keyb.c b/drivers/char/ec3104_keyb.c index 77f58ed6d59a..020011495d91 100644 --- a/drivers/char/ec3104_keyb.c +++ b/drivers/char/ec3104_keyb.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/miscdevice.h> | 41 | #include <linux/miscdevice.h> |
42 | #include <linux/slab.h> | 42 | #include <linux/slab.h> |
43 | #include <linux/kbd_kern.h> | 43 | #include <linux/kbd_kern.h> |
44 | #include <linux/smp_lock.h> | ||
45 | #include <linux/bitops.h> | 44 | #include <linux/bitops.h> |
46 | 45 | ||
47 | #include <asm/keyboard.h> | 46 | #include <asm/keyboard.h> |
diff --git a/drivers/char/hangcheck-timer.c b/drivers/char/hangcheck-timer.c index ae76a9ffe89f..f0e7263dfcde 100644 --- a/drivers/char/hangcheck-timer.c +++ b/drivers/char/hangcheck-timer.c | |||
@@ -44,7 +44,6 @@ | |||
44 | #include <linux/fs.h> | 44 | #include <linux/fs.h> |
45 | #include <linux/mm.h> | 45 | #include <linux/mm.h> |
46 | #include <linux/reboot.h> | 46 | #include <linux/reboot.h> |
47 | #include <linux/smp_lock.h> | ||
48 | #include <linux/init.h> | 47 | #include <linux/init.h> |
49 | #include <linux/delay.h> | 48 | #include <linux/delay.h> |
50 | #include <asm/uaccess.h> | 49 | #include <asm/uaccess.h> |
diff --git a/drivers/char/ip27-rtc.c b/drivers/char/ip27-rtc.c index a48da02aad2f..932264a657d0 100644 --- a/drivers/char/ip27-rtc.c +++ b/drivers/char/ip27-rtc.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/init.h> | 35 | #include <linux/init.h> |
36 | #include <linux/poll.h> | 36 | #include <linux/poll.h> |
37 | #include <linux/proc_fs.h> | 37 | #include <linux/proc_fs.h> |
38 | #include <linux/smp_lock.h> | ||
39 | 38 | ||
40 | #include <asm/m48t35.h> | 39 | #include <asm/m48t35.h> |
41 | #include <asm/sn/ioc3.h> | 40 | #include <asm/sn/ioc3.h> |
diff --git a/drivers/char/lp.c b/drivers/char/lp.c index 2f04fed69f19..fa626034a6e2 100644 --- a/drivers/char/lp.c +++ b/drivers/char/lp.c | |||
@@ -118,7 +118,6 @@ | |||
118 | #include <linux/kernel.h> | 118 | #include <linux/kernel.h> |
119 | #include <linux/major.h> | 119 | #include <linux/major.h> |
120 | #include <linux/sched.h> | 120 | #include <linux/sched.h> |
121 | #include <linux/smp_lock.h> | ||
122 | #include <linux/slab.h> | 121 | #include <linux/slab.h> |
123 | #include <linux/fcntl.h> | 122 | #include <linux/fcntl.h> |
124 | #include <linux/delay.h> | 123 | #include <linux/delay.h> |
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 5f066963f171..2c6fc505cc3c 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/raw.h> | 18 | #include <linux/raw.h> |
19 | #include <linux/tty.h> | 19 | #include <linux/tty.h> |
20 | #include <linux/capability.h> | 20 | #include <linux/capability.h> |
21 | #include <linux/smp_lock.h> | ||
22 | #include <linux/ptrace.h> | 21 | #include <linux/ptrace.h> |
23 | #include <linux/device.h> | 22 | #include <linux/device.h> |
24 | #include <linux/highmem.h> | 23 | #include <linux/highmem.h> |
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index 80a01150b86c..5953a45d7e96 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c | |||
@@ -54,7 +54,6 @@ | |||
54 | #include <linux/gfp.h> | 54 | #include <linux/gfp.h> |
55 | #include <linux/ioport.h> | 55 | #include <linux/ioport.h> |
56 | #include <linux/mm.h> | 56 | #include <linux/mm.h> |
57 | #include <linux/smp_lock.h> | ||
58 | #include <linux/delay.h> | 57 | #include <linux/delay.h> |
59 | #include <linux/pci.h> | 58 | #include <linux/pci.h> |
60 | 59 | ||
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index f7603b6aeb87..6cde448cd5b2 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include <linux/gfp.h> | 37 | #include <linux/gfp.h> |
38 | #include <linux/ioport.h> | 38 | #include <linux/ioport.h> |
39 | #include <linux/mm.h> | 39 | #include <linux/mm.h> |
40 | #include <linux/smp_lock.h> | ||
41 | #include <linux/delay.h> | 40 | #include <linux/delay.h> |
42 | #include <linux/pci.h> | 41 | #include <linux/pci.h> |
43 | 42 | ||
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 804c5c2e2409..84ac64fc48a1 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c | |||
@@ -66,7 +66,6 @@ | |||
66 | #include <linux/poll.h> | 66 | #include <linux/poll.h> |
67 | #include <linux/major.h> | 67 | #include <linux/major.h> |
68 | #include <linux/ppdev.h> | 68 | #include <linux/ppdev.h> |
69 | #include <linux/smp_lock.h> | ||
70 | #include <linux/device.h> | 69 | #include <linux/device.h> |
71 | #include <asm/uaccess.h> | 70 | #include <asm/uaccess.h> |
72 | 71 | ||
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 1d8c4ae61551..39cc318011ea 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/sysrq.h> | 24 | #include <linux/sysrq.h> |
25 | #include <linux/kbd_kern.h> | 25 | #include <linux/kbd_kern.h> |
26 | #include <linux/quotaops.h> | 26 | #include <linux/quotaops.h> |
27 | #include <linux/smp_lock.h> | ||
28 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
29 | #include <linux/module.h> | 28 | #include <linux/module.h> |
30 | #include <linux/suspend.h> | 29 | #include <linux/suspend.h> |
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c index 791930320a13..61fbc9e52eeb 100644 --- a/drivers/char/vc_screen.c +++ b/drivers/char/vc_screen.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/selection.h> | 32 | #include <linux/selection.h> |
33 | #include <linux/kbd_kern.h> | 33 | #include <linux/kbd_kern.h> |
34 | #include <linux/console.h> | 34 | #include <linux/console.h> |
35 | #include <linux/smp_lock.h> | ||
36 | #include <linux/device.h> | 35 | #include <linux/device.h> |
37 | #include <asm/uaccess.h> | 36 | #include <asm/uaccess.h> |
38 | #include <asm/byteorder.h> | 37 | #include <asm/byteorder.h> |
diff --git a/drivers/char/watchdog/omap_wdt.c b/drivers/char/watchdog/omap_wdt.c index 84074a697dce..b36fa8de2131 100644 --- a/drivers/char/watchdog/omap_wdt.c +++ b/drivers/char/watchdog/omap_wdt.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <linux/miscdevice.h> | 34 | #include <linux/miscdevice.h> |
35 | #include <linux/watchdog.h> | 35 | #include <linux/watchdog.h> |
36 | #include <linux/reboot.h> | 36 | #include <linux/reboot.h> |
37 | #include <linux/smp_lock.h> | ||
38 | #include <linux/init.h> | 37 | #include <linux/init.h> |
39 | #include <linux/err.h> | 38 | #include <linux/err.h> |
40 | #include <linux/platform_device.h> | 39 | #include <linux/platform_device.h> |