diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/isdn/mISDN | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/isdn/mISDN')
-rw-r--r-- | drivers/isdn/mISDN/clock.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/core.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_cmx.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_core.c | 7 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_pipeline.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_tones.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/hwchannel.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/l1oip_core.c | 7 | ||||
-rw-r--r-- | drivers/isdn/mISDN/layer1.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/layer2.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 6 | ||||
-rw-r--r-- | drivers/isdn/mISDN/stack.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/tei.c | 3 | ||||
-rw-r--r-- | drivers/isdn/mISDN/timerdev.c | 1 |
14 files changed, 23 insertions, 10 deletions
diff --git a/drivers/isdn/mISDN/clock.c b/drivers/isdn/mISDN/clock.c index f1bbc88763b2..1fa629b3b940 100644 --- a/drivers/isdn/mISDN/clock.c +++ b/drivers/isdn/mISDN/clock.c | |||
@@ -33,6 +33,7 @@ | |||
33 | * | 33 | * |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/slab.h> | ||
36 | #include <linux/types.h> | 37 | #include <linux/types.h> |
37 | #include <linux/stddef.h> | 38 | #include <linux/stddef.h> |
38 | #include <linux/spinlock.h> | 39 | #include <linux/spinlock.h> |
diff --git a/drivers/isdn/mISDN/core.c b/drivers/isdn/mISDN/core.c index 21d34be5af6a..afeebb00fe0b 100644 --- a/drivers/isdn/mISDN/core.c +++ b/drivers/isdn/mISDN/core.c | |||
@@ -12,6 +12,7 @@ | |||
12 | * | 12 | * |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/slab.h> | ||
15 | #include <linux/types.h> | 16 | #include <linux/types.h> |
16 | #include <linux/stddef.h> | 17 | #include <linux/stddef.h> |
17 | #include <linux/module.h> | 18 | #include <linux/module.h> |
diff --git a/drivers/isdn/mISDN/dsp_cmx.c b/drivers/isdn/mISDN/dsp_cmx.c index 9c7c0d1ba55f..713ef2b805a2 100644 --- a/drivers/isdn/mISDN/dsp_cmx.c +++ b/drivers/isdn/mISDN/dsp_cmx.c | |||
@@ -124,6 +124,7 @@ | |||
124 | 124 | ||
125 | /* delay.h is required for hw_lock.h */ | 125 | /* delay.h is required for hw_lock.h */ |
126 | 126 | ||
127 | #include <linux/slab.h> | ||
127 | #include <linux/delay.h> | 128 | #include <linux/delay.h> |
128 | #include <linux/mISDNif.h> | 129 | #include <linux/mISDNif.h> |
129 | #include <linux/mISDNdsp.h> | 130 | #include <linux/mISDNdsp.h> |
diff --git a/drivers/isdn/mISDN/dsp_core.c b/drivers/isdn/mISDN/dsp_core.c index 77ee2867c8b4..6f5b54864283 100644 --- a/drivers/isdn/mISDN/dsp_core.c +++ b/drivers/isdn/mISDN/dsp_core.c | |||
@@ -110,7 +110,7 @@ | |||
110 | * crossconnections and conferences via software if not possible through | 110 | * crossconnections and conferences via software if not possible through |
111 | * hardware. If hardware capability is available, hardware is used. | 111 | * hardware. If hardware capability is available, hardware is used. |
112 | * | 112 | * |
113 | * Echo: Is generated by CMX and is used to check performane of hard and | 113 | * Echo: Is generated by CMX and is used to check performance of hard and |
114 | * software CMX. | 114 | * software CMX. |
115 | * | 115 | * |
116 | * The CMX has special functions for conferences with one, two and more | 116 | * The CMX has special functions for conferences with one, two and more |
@@ -154,6 +154,7 @@ | |||
154 | */ | 154 | */ |
155 | 155 | ||
156 | #include <linux/delay.h> | 156 | #include <linux/delay.h> |
157 | #include <linux/gfp.h> | ||
157 | #include <linux/mISDNif.h> | 158 | #include <linux/mISDNif.h> |
158 | #include <linux/mISDNdsp.h> | 159 | #include <linux/mISDNdsp.h> |
159 | #include <linux/module.h> | 160 | #include <linux/module.h> |
@@ -1114,7 +1115,7 @@ static struct Bprotocol DSP = { | |||
1114 | .create = dspcreate | 1115 | .create = dspcreate |
1115 | }; | 1116 | }; |
1116 | 1117 | ||
1117 | static int dsp_init(void) | 1118 | static int __init dsp_init(void) |
1118 | { | 1119 | { |
1119 | int err; | 1120 | int err; |
1120 | int tics; | 1121 | int tics; |
@@ -1212,7 +1213,7 @@ static int dsp_init(void) | |||
1212 | } | 1213 | } |
1213 | 1214 | ||
1214 | 1215 | ||
1215 | static void dsp_cleanup(void) | 1216 | static void __exit dsp_cleanup(void) |
1216 | { | 1217 | { |
1217 | mISDN_unregister_Bprotocol(&DSP); | 1218 | mISDN_unregister_Bprotocol(&DSP); |
1218 | 1219 | ||
diff --git a/drivers/isdn/mISDN/dsp_pipeline.c b/drivers/isdn/mISDN/dsp_pipeline.c index e9941678edfa..621f31007095 100644 --- a/drivers/isdn/mISDN/dsp_pipeline.c +++ b/drivers/isdn/mISDN/dsp_pipeline.c | |||
@@ -25,6 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | #include <linux/slab.h> | ||
28 | #include <linux/list.h> | 29 | #include <linux/list.h> |
29 | #include <linux/string.h> | 30 | #include <linux/string.h> |
30 | #include <linux/mISDNif.h> | 31 | #include <linux/mISDNif.h> |
diff --git a/drivers/isdn/mISDN/dsp_tones.c b/drivers/isdn/mISDN/dsp_tones.c index 1debf53670de..7dbe54ed1deb 100644 --- a/drivers/isdn/mISDN/dsp_tones.c +++ b/drivers/isdn/mISDN/dsp_tones.c | |||
@@ -8,6 +8,7 @@ | |||
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/gfp.h> | ||
11 | #include <linux/mISDNif.h> | 12 | #include <linux/mISDNif.h> |
12 | #include <linux/mISDNdsp.h> | 13 | #include <linux/mISDNdsp.h> |
13 | #include "core.h" | 14 | #include "core.h" |
diff --git a/drivers/isdn/mISDN/hwchannel.c b/drivers/isdn/mISDN/hwchannel.c index e8049be552aa..307bd6e8988b 100644 --- a/drivers/isdn/mISDN/hwchannel.c +++ b/drivers/isdn/mISDN/hwchannel.c | |||
@@ -15,6 +15,7 @@ | |||
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/gfp.h> | ||
18 | #include <linux/module.h> | 19 | #include <linux/module.h> |
19 | #include <linux/mISDNhw.h> | 20 | #include <linux/mISDNhw.h> |
20 | 21 | ||
diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c index 7e5f30dbc0a0..22f38e48ac4e 100644 --- a/drivers/isdn/mISDN/l1oip_core.c +++ b/drivers/isdn/mISDN/l1oip_core.c | |||
@@ -233,6 +233,7 @@ socket process and create a new one. | |||
233 | #include <linux/inet.h> | 233 | #include <linux/inet.h> |
234 | #include <linux/workqueue.h> | 234 | #include <linux/workqueue.h> |
235 | #include <linux/kthread.h> | 235 | #include <linux/kthread.h> |
236 | #include <linux/slab.h> | ||
236 | #include <net/sock.h> | 237 | #include <net/sock.h> |
237 | #include "core.h" | 238 | #include "core.h" |
238 | #include "l1oip.h" | 239 | #include "l1oip.h" |
@@ -477,7 +478,7 @@ l1oip_socket_parse(struct l1oip *hc, struct sockaddr_in *sin, u8 *buf, int len) | |||
477 | printk(KERN_DEBUG "%s: received frame, parsing... (%d)\n", | 478 | printk(KERN_DEBUG "%s: received frame, parsing... (%d)\n", |
478 | __func__, len); | 479 | __func__, len); |
479 | 480 | ||
480 | /* check lenght */ | 481 | /* check length */ |
481 | if (len < 1+1+2) { | 482 | if (len < 1+1+2) { |
482 | printk(KERN_WARNING "%s: packet error - length %d below " | 483 | printk(KERN_WARNING "%s: packet error - length %d below " |
483 | "4 bytes\n", __func__, len); | 484 | "4 bytes\n", __func__, len); |
@@ -661,7 +662,7 @@ l1oip_socket_thread(void *data) | |||
661 | size_t recvbuf_size = 1500; | 662 | size_t recvbuf_size = 1500; |
662 | int recvlen; | 663 | int recvlen; |
663 | struct socket *socket = NULL; | 664 | struct socket *socket = NULL; |
664 | DECLARE_COMPLETION(wait); | 665 | DECLARE_COMPLETION_ONSTACK(wait); |
665 | 666 | ||
666 | /* allocate buffer memory */ | 667 | /* allocate buffer memory */ |
667 | recvbuf = kmalloc(recvbuf_size, GFP_KERNEL); | 668 | recvbuf = kmalloc(recvbuf_size, GFP_KERNEL); |
@@ -1509,7 +1510,7 @@ l1oip_init(void) | |||
1509 | printk(KERN_DEBUG "%s: interface %d is %s with %s.\n", | 1510 | printk(KERN_DEBUG "%s: interface %d is %s with %s.\n", |
1510 | __func__, l1oip_cnt, pri ? "PRI" : "BRI", | 1511 | __func__, l1oip_cnt, pri ? "PRI" : "BRI", |
1511 | bundle ? "bundled IP packet for all B-channels" : | 1512 | bundle ? "bundled IP packet for all B-channels" : |
1512 | "seperate IP packets for every B-channel"); | 1513 | "separate IP packets for every B-channel"); |
1513 | 1514 | ||
1514 | hc = kzalloc(sizeof(struct l1oip), GFP_ATOMIC); | 1515 | hc = kzalloc(sizeof(struct l1oip), GFP_ATOMIC); |
1515 | if (!hc) { | 1516 | if (!hc) { |
diff --git a/drivers/isdn/mISDN/layer1.c b/drivers/isdn/mISDN/layer1.c index e826eeb1ecec..ac4aa18c632b 100644 --- a/drivers/isdn/mISDN/layer1.c +++ b/drivers/isdn/mISDN/layer1.c | |||
@@ -16,6 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | 18 | ||
19 | #include <linux/slab.h> | ||
19 | #include <linux/module.h> | 20 | #include <linux/module.h> |
20 | #include <linux/mISDNhw.h> | 21 | #include <linux/mISDNhw.h> |
21 | #include "core.h" | 22 | #include "core.h" |
diff --git a/drivers/isdn/mISDN/layer2.c b/drivers/isdn/mISDN/layer2.c index e17f0044e0b6..c97371788764 100644 --- a/drivers/isdn/mISDN/layer2.c +++ b/drivers/isdn/mISDN/layer2.c | |||
@@ -16,6 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/mISDNif.h> | 18 | #include <linux/mISDNif.h> |
19 | #include <linux/slab.h> | ||
19 | #include "core.h" | 20 | #include "core.h" |
20 | #include "fsm.h" | 21 | #include "fsm.h" |
21 | #include "layer2.h" | 22 | #include "layer2.h" |
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index feb0fa45b664..3232206406b1 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c | |||
@@ -16,6 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/mISDNif.h> | 18 | #include <linux/mISDNif.h> |
19 | #include <linux/slab.h> | ||
19 | #include "core.h" | 20 | #include "core.h" |
20 | 21 | ||
21 | static u_int *debug; | 22 | static u_int *debug; |
@@ -779,7 +780,7 @@ base_sock_create(struct net *net, struct socket *sock, int protocol) | |||
779 | } | 780 | } |
780 | 781 | ||
781 | static int | 782 | static int |
782 | mISDN_sock_create(struct net *net, struct socket *sock, int proto) | 783 | mISDN_sock_create(struct net *net, struct socket *sock, int proto, int kern) |
783 | { | 784 | { |
784 | int err = -EPROTONOSUPPORT; | 785 | int err = -EPROTONOSUPPORT; |
785 | 786 | ||
@@ -808,8 +809,7 @@ mISDN_sock_create(struct net *net, struct socket *sock, int proto) | |||
808 | return err; | 809 | return err; |
809 | } | 810 | } |
810 | 811 | ||
811 | static struct | 812 | static const struct net_proto_family mISDN_sock_family_ops = { |
812 | net_proto_family mISDN_sock_family_ops = { | ||
813 | .owner = THIS_MODULE, | 813 | .owner = THIS_MODULE, |
814 | .family = PF_ISDN, | 814 | .family = PF_ISDN, |
815 | .create = mISDN_sock_create, | 815 | .create = mISDN_sock_create, |
diff --git a/drivers/isdn/mISDN/stack.c b/drivers/isdn/mISDN/stack.c index 0d05ec43012c..b159bd59e64e 100644 --- a/drivers/isdn/mISDN/stack.c +++ b/drivers/isdn/mISDN/stack.c | |||
@@ -15,6 +15,7 @@ | |||
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/slab.h> | ||
18 | #include <linux/mISDNif.h> | 19 | #include <linux/mISDNif.h> |
19 | #include <linux/kthread.h> | 20 | #include <linux/kthread.h> |
20 | #include <linux/smp_lock.h> | 21 | #include <linux/smp_lock.h> |
diff --git a/drivers/isdn/mISDN/tei.c b/drivers/isdn/mISDN/tei.c index e04bad6c5baf..34e898fe2f4f 100644 --- a/drivers/isdn/mISDN/tei.c +++ b/drivers/isdn/mISDN/tei.c | |||
@@ -16,6 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | #include "layer2.h" | 17 | #include "layer2.h" |
18 | #include <linux/random.h> | 18 | #include <linux/random.h> |
19 | #include <linux/slab.h> | ||
19 | #include "core.h" | 20 | #include "core.h" |
20 | 21 | ||
21 | #define ID_REQUEST 1 | 22 | #define ID_REQUEST 1 |
@@ -725,7 +726,7 @@ tei_id_ver_tout_net(struct FsmInst *fi, int event, void *arg) | |||
725 | if (tm->rcnt == 1) { | 726 | if (tm->rcnt == 1) { |
726 | if (*debug & DEBUG_L2_TEI) | 727 | if (*debug & DEBUG_L2_TEI) |
727 | tm->tei_m.printdebug(fi, | 728 | tm->tei_m.printdebug(fi, |
728 | "check req for tei %d sucessful\n", tm->l2->tei); | 729 | "check req for tei %d successful\n", tm->l2->tei); |
729 | mISDN_FsmChangeState(fi, ST_TEI_NOP); | 730 | mISDN_FsmChangeState(fi, ST_TEI_NOP); |
730 | } else if (tm->rcnt > 1) { | 731 | } else if (tm->rcnt > 1) { |
731 | /* duplicate assignment; remove */ | 732 | /* duplicate assignment; remove */ |
diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c index 5b7e9bf514f1..8785004e85e0 100644 --- a/drivers/isdn/mISDN/timerdev.c +++ b/drivers/isdn/mISDN/timerdev.c | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #include <linux/poll.h> | 20 | #include <linux/poll.h> |
21 | #include <linux/vmalloc.h> | 21 | #include <linux/vmalloc.h> |
22 | #include <linux/slab.h> | ||
22 | #include <linux/timer.h> | 23 | #include <linux/timer.h> |
23 | #include <linux/miscdevice.h> | 24 | #include <linux/miscdevice.h> |
24 | #include <linux/module.h> | 25 | #include <linux/module.h> |