diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-01-11 15:17:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 21:42:14 -0500 |
commit | 4fc268d24ceb9f4150777c1b5b2b8e6214e56b2b (patch) | |
tree | d2aaf0b5986b03e6129ed3ccd65b9f706cd59c7f /net/core | |
parent | 16f7e0fe2ecc30f30652e8185e1772cdebe39109 (diff) |
[PATCH] capable/capability.h (net/)
net: Use <linux/capability.h> where capable() is used.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 1 | ||||
-rw-r--r-- | net/core/dv.c | 1 | ||||
-rw-r--r-- | net/core/ethtool.c | 1 | ||||
-rw-r--r-- | net/core/net-sysfs.c | 1 | ||||
-rw-r--r-- | net/core/pktgen.c | 2 | ||||
-rw-r--r-- | net/core/scm.c | 1 | ||||
-rw-r--r-- | net/core/sock.c | 1 |
7 files changed, 7 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index bf66b114d3c..fd070a098f2 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -75,6 +75,7 @@ | |||
75 | #include <asm/uaccess.h> | 75 | #include <asm/uaccess.h> |
76 | #include <asm/system.h> | 76 | #include <asm/system.h> |
77 | #include <linux/bitops.h> | 77 | #include <linux/bitops.h> |
78 | #include <linux/capability.h> | ||
78 | #include <linux/config.h> | 79 | #include <linux/config.h> |
79 | #include <linux/cpu.h> | 80 | #include <linux/cpu.h> |
80 | #include <linux/types.h> | 81 | #include <linux/types.h> |
diff --git a/net/core/dv.c b/net/core/dv.c index 1516a90a138..cf581407538 100644 --- a/net/core/dv.c +++ b/net/core/dv.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/netdevice.h> | 24 | #include <linux/netdevice.h> |
25 | #include <linux/etherdevice.h> | 25 | #include <linux/etherdevice.h> |
26 | #include <linux/skbuff.h> | 26 | #include <linux/skbuff.h> |
27 | #include <linux/capability.h> | ||
27 | #include <linux/errno.h> | 28 | #include <linux/errno.h> |
28 | #include <linux/init.h> | 29 | #include <linux/init.h> |
29 | #include <net/dst.h> | 30 | #include <net/dst.h> |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 0350586e919..e6f76106a99 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/types.h> | 13 | #include <linux/types.h> |
14 | #include <linux/capability.h> | ||
14 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
15 | #include <linux/ethtool.h> | 16 | #include <linux/ethtool.h> |
16 | #include <linux/netdevice.h> | 17 | #include <linux/netdevice.h> |
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 58adaf208dd..e8b2acbc8ea 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * 2 of the License, or (at your option) any later version. | 9 | * 2 of the License, or (at your option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/capability.h> | ||
12 | #include <linux/config.h> | 13 | #include <linux/config.h> |
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
14 | #include <linux/netdevice.h> | 15 | #include <linux/netdevice.h> |
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 631056d44b7..39063122fbb 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -116,13 +116,13 @@ | |||
116 | #include <linux/sched.h> | 116 | #include <linux/sched.h> |
117 | #include <linux/slab.h> | 117 | #include <linux/slab.h> |
118 | #include <linux/vmalloc.h> | 118 | #include <linux/vmalloc.h> |
119 | #include <linux/sched.h> | ||
120 | #include <linux/unistd.h> | 119 | #include <linux/unistd.h> |
121 | #include <linux/string.h> | 120 | #include <linux/string.h> |
122 | #include <linux/ptrace.h> | 121 | #include <linux/ptrace.h> |
123 | #include <linux/errno.h> | 122 | #include <linux/errno.h> |
124 | #include <linux/ioport.h> | 123 | #include <linux/ioport.h> |
125 | #include <linux/interrupt.h> | 124 | #include <linux/interrupt.h> |
125 | #include <linux/capability.h> | ||
126 | #include <linux/delay.h> | 126 | #include <linux/delay.h> |
127 | #include <linux/timer.h> | 127 | #include <linux/timer.h> |
128 | #include <linux/init.h> | 128 | #include <linux/init.h> |
diff --git a/net/core/scm.c b/net/core/scm.c index e887d19be50..649d01ef35b 100644 --- a/net/core/scm.c +++ b/net/core/scm.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/signal.h> | 13 | #include <linux/signal.h> |
14 | #include <linux/capability.h> | ||
14 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
15 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
16 | #include <linux/mm.h> | 17 | #include <linux/mm.h> |
diff --git a/net/core/sock.c b/net/core/sock.c index 6465b0e4c8c..6e00811d44b 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -91,6 +91,7 @@ | |||
91 | * 2 of the License, or (at your option) any later version. | 91 | * 2 of the License, or (at your option) any later version. |
92 | */ | 92 | */ |
93 | 93 | ||
94 | #include <linux/capability.h> | ||
94 | #include <linux/config.h> | 95 | #include <linux/config.h> |
95 | #include <linux/errno.h> | 96 | #include <linux/errno.h> |
96 | #include <linux/types.h> | 97 | #include <linux/types.h> |