diff options
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/Kconfig | 2 | ||||
-rw-r--r-- | drivers/isdn/capi/kcapi_proc.c | 1 | ||||
-rw-r--r-- | drivers/isdn/gigaset/asyncdata.c | 1 | ||||
-rw-r--r-- | drivers/isdn/gigaset/capi.c | 1 | ||||
-rw-r--r-- | drivers/isdn/gigaset/dummyll.c | 1 | ||||
-rw-r--r-- | drivers/isdn/gigaset/ev-layer.c | 1 | ||||
-rw-r--r-- | drivers/isdn/gigaset/i4l.c | 1 | ||||
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 1 | ||||
-rw-r--r-- | drivers/isdn/hardware/mISDN/mISDNisar.c | 1 | ||||
-rw-r--r-- | drivers/isdn/hisax/callc.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hisax/hisax.h | 4 | ||||
-rw-r--r-- | drivers/isdn/hisax/isdnl1.h | 2 | ||||
-rw-r--r-- | drivers/isdn/hisax/isdnl3.c | 2 | ||||
-rw-r--r-- | drivers/isdn/hisax/l3dss1.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hisax/st5481_d.c | 4 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_common.c | 4 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 3 | ||||
-rw-r--r-- | drivers/isdn/mISDN/clock.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_audio.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_core.c | 3 | ||||
-rw-r--r-- | drivers/isdn/mISDN/dsp_pipeline.c | 1 | ||||
-rw-r--r-- | drivers/isdn/mISDN/l1oip_codec.c | 6 | ||||
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 1 |
23 files changed, 31 insertions, 21 deletions
diff --git a/drivers/isdn/Kconfig b/drivers/isdn/Kconfig index 4fb601670de3..a233ed53913a 100644 --- a/drivers/isdn/Kconfig +++ b/drivers/isdn/Kconfig | |||
@@ -5,7 +5,7 @@ | |||
5 | menuconfig ISDN | 5 | menuconfig ISDN |
6 | bool "ISDN support" | 6 | bool "ISDN support" |
7 | depends on NET | 7 | depends on NET |
8 | depends on !S390 | 8 | depends on !S390 && !UML |
9 | ---help--- | 9 | ---help--- |
10 | ISDN ("Integrated Services Digital Network", called RNIS in France) | 10 | ISDN ("Integrated Services Digital Network", called RNIS in France) |
11 | is a fully digital telephone service that can be used for voice and | 11 | is a fully digital telephone service that can be used for voice and |
diff --git a/drivers/isdn/capi/kcapi_proc.c b/drivers/isdn/capi/kcapi_proc.c index ea2dff602e49..8d51cd1bf674 100644 --- a/drivers/isdn/capi/kcapi_proc.c +++ b/drivers/isdn/capi/kcapi_proc.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/proc_fs.h> | 14 | #include <linux/proc_fs.h> |
15 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/export.h> | ||
17 | 18 | ||
18 | static char *state2str(unsigned short state) | 19 | static char *state2str(unsigned short state) |
19 | { | 20 | { |
diff --git a/drivers/isdn/gigaset/asyncdata.c b/drivers/isdn/gigaset/asyncdata.c index c3b1dc3a13a0..fddae72e3f98 100644 --- a/drivers/isdn/gigaset/asyncdata.c +++ b/drivers/isdn/gigaset/asyncdata.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include "gigaset.h" | 16 | #include "gigaset.h" |
17 | #include <linux/crc-ccitt.h> | 17 | #include <linux/crc-ccitt.h> |
18 | #include <linux/bitrev.h> | 18 | #include <linux/bitrev.h> |
19 | #include <linux/export.h> | ||
19 | 20 | ||
20 | /* check if byte must be stuffed/escaped | 21 | /* check if byte must be stuffed/escaped |
21 | * I'm not sure which data should be encoded. | 22 | * I'm not sure which data should be encoded. |
diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c index 658e75f18d05..6d5ceeece9f2 100644 --- a/drivers/isdn/gigaset/capi.c +++ b/drivers/isdn/gigaset/capi.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/isdn/capilli.h> | 17 | #include <linux/isdn/capilli.h> |
18 | #include <linux/isdn/capicmd.h> | 18 | #include <linux/isdn/capicmd.h> |
19 | #include <linux/isdn/capiutil.h> | 19 | #include <linux/isdn/capiutil.h> |
20 | #include <linux/export.h> | ||
20 | 21 | ||
21 | /* missing from kernelcapi.h */ | 22 | /* missing from kernelcapi.h */ |
22 | #define CapiNcpiNotSupportedByProtocol 0x0001 | 23 | #define CapiNcpiNotSupportedByProtocol 0x0001 |
diff --git a/drivers/isdn/gigaset/dummyll.c b/drivers/isdn/gigaset/dummyll.c index bd0b1eaa7572..19b1c779d50f 100644 --- a/drivers/isdn/gigaset/dummyll.c +++ b/drivers/isdn/gigaset/dummyll.c | |||
@@ -11,6 +11,7 @@ | |||
11 | * ===================================================================== | 11 | * ===================================================================== |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/export.h> | ||
14 | #include "gigaset.h" | 15 | #include "gigaset.h" |
15 | 16 | ||
16 | void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *skb) | 17 | void gigaset_skb_sent(struct bc_state *bcs, struct sk_buff *skb) |
diff --git a/drivers/isdn/gigaset/ev-layer.c b/drivers/isdn/gigaset/ev-layer.c index ba74646cf0e4..6d12623c1db0 100644 --- a/drivers/isdn/gigaset/ev-layer.c +++ b/drivers/isdn/gigaset/ev-layer.c | |||
@@ -13,6 +13,7 @@ | |||
13 | * ===================================================================== | 13 | * ===================================================================== |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/export.h> | ||
16 | #include "gigaset.h" | 17 | #include "gigaset.h" |
17 | 18 | ||
18 | /* ========================================================== */ | 19 | /* ========================================================== */ |
diff --git a/drivers/isdn/gigaset/i4l.c b/drivers/isdn/gigaset/i4l.c index 9bec8b969964..04231cb2f031 100644 --- a/drivers/isdn/gigaset/i4l.c +++ b/drivers/isdn/gigaset/i4l.c | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include "gigaset.h" | 16 | #include "gigaset.h" |
17 | #include <linux/isdnif.h> | 17 | #include <linux/isdnif.h> |
18 | #include <linux/export.h> | ||
18 | 19 | ||
19 | #define SBUFSIZE 4096 /* sk_buff payload size */ | 20 | #define SBUFSIZE 4096 /* sk_buff payload size */ |
20 | #define TRANSBUFSIZE 768 /* bytes per skb for transparent receive */ | 21 | #define TRANSBUFSIZE 768 /* bytes per skb for transparent receive */ |
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index e35058bcd7b9..ee0a549a933a 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include "gigaset.h" | 14 | #include "gigaset.h" |
15 | #include <linux/gigaset_dev.h> | 15 | #include <linux/gigaset_dev.h> |
16 | #include <linux/tty_flip.h> | 16 | #include <linux/tty_flip.h> |
17 | #include <linux/module.h> | ||
17 | 18 | ||
18 | /*** our ioctls ***/ | 19 | /*** our ioctls ***/ |
19 | 20 | ||
diff --git a/drivers/isdn/hardware/mISDN/mISDNisar.c b/drivers/isdn/hardware/mISDN/mISDNisar.c index d13fa5b119f5..7034af28d464 100644 --- a/drivers/isdn/hardware/mISDN/mISDNisar.c +++ b/drivers/isdn/hardware/mISDN/mISDNisar.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/delay.h> | 29 | #include <linux/delay.h> |
30 | #include <linux/vmalloc.h> | 30 | #include <linux/vmalloc.h> |
31 | #include <linux/mISDNhw.h> | 31 | #include <linux/mISDNhw.h> |
32 | #include <linux/module.h> | ||
32 | #include "isar.h" | 33 | #include "isar.h" |
33 | 34 | ||
34 | #define ISAR_REV "2.1" | 35 | #define ISAR_REV "2.1" |
diff --git a/drivers/isdn/hisax/callc.c b/drivers/isdn/hisax/callc.c index 37e685eafd24..c4897e1075d8 100644 --- a/drivers/isdn/hisax/callc.c +++ b/drivers/isdn/hisax/callc.c | |||
@@ -65,7 +65,7 @@ hisax_findcard(int driverid) | |||
65 | return (struct IsdnCardState *) 0; | 65 | return (struct IsdnCardState *) 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | static __attribute__((format(printf, 3, 4))) void | 68 | static __printf(3, 4) void |
69 | link_debug(struct Channel *chanp, int direction, char *fmt, ...) | 69 | link_debug(struct Channel *chanp, int direction, char *fmt, ...) |
70 | { | 70 | { |
71 | va_list args; | 71 | va_list args; |
@@ -1068,7 +1068,7 @@ init_d_st(struct Channel *chanp) | |||
1068 | return 0; | 1068 | return 0; |
1069 | } | 1069 | } |
1070 | 1070 | ||
1071 | static __attribute__((format(printf, 2, 3))) void | 1071 | static __printf(2, 3) void |
1072 | callc_debug(struct FsmInst *fi, char *fmt, ...) | 1072 | callc_debug(struct FsmInst *fi, char *fmt, ...) |
1073 | { | 1073 | { |
1074 | va_list args; | 1074 | va_list args; |
diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h index 0a5c42a3f125..aff45a11a92d 100644 --- a/drivers/isdn/hisax/hisax.h +++ b/drivers/isdn/hisax/hisax.h | |||
@@ -1287,9 +1287,9 @@ int jiftime(char *s, long mark); | |||
1287 | 1287 | ||
1288 | int HiSax_command(isdn_ctrl * ic); | 1288 | int HiSax_command(isdn_ctrl * ic); |
1289 | int HiSax_writebuf_skb(int id, int chan, int ack, struct sk_buff *skb); | 1289 | int HiSax_writebuf_skb(int id, int chan, int ack, struct sk_buff *skb); |
1290 | __attribute__((format(printf, 3, 4))) | 1290 | __printf(3, 4) |
1291 | void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...); | 1291 | void HiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, ...); |
1292 | __attribute__((format(printf, 3, 0))) | 1292 | __printf(3, 0) |
1293 | void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, va_list args); | 1293 | void VHiSax_putstatus(struct IsdnCardState *cs, char *head, char *fmt, va_list args); |
1294 | void HiSax_reportcard(int cardnr, int sel); | 1294 | void HiSax_reportcard(int cardnr, int sel); |
1295 | int QuickHex(char *txt, u_char * p, int cnt); | 1295 | int QuickHex(char *txt, u_char * p, int cnt); |
diff --git a/drivers/isdn/hisax/isdnl1.h b/drivers/isdn/hisax/isdnl1.h index 425d86116f2b..66ddcab19bba 100644 --- a/drivers/isdn/hisax/isdnl1.h +++ b/drivers/isdn/hisax/isdnl1.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #define B_XMTBUFREADY 1 | 21 | #define B_XMTBUFREADY 1 |
22 | #define B_ACKPENDING 2 | 22 | #define B_ACKPENDING 2 |
23 | 23 | ||
24 | __attribute__((format(printf, 2, 3))) | 24 | __printf(2, 3) |
25 | void debugl1(struct IsdnCardState *cs, char *fmt, ...); | 25 | void debugl1(struct IsdnCardState *cs, char *fmt, ...); |
26 | void DChannel_proc_xmt(struct IsdnCardState *cs); | 26 | void DChannel_proc_xmt(struct IsdnCardState *cs); |
27 | void DChannel_proc_rcv(struct IsdnCardState *cs); | 27 | void DChannel_proc_rcv(struct IsdnCardState *cs); |
diff --git a/drivers/isdn/hisax/isdnl3.c b/drivers/isdn/hisax/isdnl3.c index ad291f21b201..1c24e4457b6f 100644 --- a/drivers/isdn/hisax/isdnl3.c +++ b/drivers/isdn/hisax/isdnl3.c | |||
@@ -66,7 +66,7 @@ static char *strL3Event[] = | |||
66 | "EV_TIMEOUT", | 66 | "EV_TIMEOUT", |
67 | }; | 67 | }; |
68 | 68 | ||
69 | static __attribute__((format(printf, 2, 3))) void | 69 | static __printf(2, 3) void |
70 | l3m_debug(struct FsmInst *fi, char *fmt, ...) | 70 | l3m_debug(struct FsmInst *fi, char *fmt, ...) |
71 | { | 71 | { |
72 | va_list args; | 72 | va_list args; |
diff --git a/drivers/isdn/hisax/l3dss1.c b/drivers/isdn/hisax/l3dss1.c index b0d9ab1f21c0..6a8acf65777d 100644 --- a/drivers/isdn/hisax/l3dss1.c +++ b/drivers/isdn/hisax/l3dss1.c | |||
@@ -353,7 +353,7 @@ l3dss1_parse_facility(struct PStack *st, struct l3_process *pc, | |||
353 | { l3dss1_dummy_invoke(st, cr, id, ident, p, nlen); | 353 | { l3dss1_dummy_invoke(st, cr, id, ident, p, nlen); |
354 | return; | 354 | return; |
355 | } | 355 | } |
356 | #ifdef HISAX_DE_AOC | 356 | #ifdef CONFIG_DE_AOC |
357 | { | 357 | { |
358 | 358 | ||
359 | #define FOO1(s,a,b) \ | 359 | #define FOO1(s,a,b) \ |
@@ -422,9 +422,9 @@ l3dss1_parse_facility(struct PStack *st, struct l3_process *pc, | |||
422 | #undef FOO1 | 422 | #undef FOO1 |
423 | 423 | ||
424 | } | 424 | } |
425 | #else /* not HISAX_DE_AOC */ | 425 | #else /* not CONFIG_DE_AOC */ |
426 | l3_debug(st, "invoke break"); | 426 | l3_debug(st, "invoke break"); |
427 | #endif /* not HISAX_DE_AOC */ | 427 | #endif /* not CONFIG_DE_AOC */ |
428 | break; | 428 | break; |
429 | case 2: /* return result */ | 429 | case 2: /* return result */ |
430 | /* if no process available handle separately */ | 430 | /* if no process available handle separately */ |
diff --git a/drivers/isdn/hisax/st5481_d.c b/drivers/isdn/hisax/st5481_d.c index 44082637a09f..db247b79e561 100644 --- a/drivers/isdn/hisax/st5481_d.c +++ b/drivers/isdn/hisax/st5481_d.c | |||
@@ -167,7 +167,7 @@ static struct FsmNode L1FnList[] __initdata = | |||
167 | {ST_L1_F8, EV_IND_RSY, l1_ignore}, | 167 | {ST_L1_F8, EV_IND_RSY, l1_ignore}, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | static __attribute__((format(printf, 2, 3))) | 170 | static __printf(2, 3) |
171 | void l1m_debug(struct FsmInst *fi, char *fmt, ...) | 171 | void l1m_debug(struct FsmInst *fi, char *fmt, ...) |
172 | { | 172 | { |
173 | va_list args; | 173 | va_list args; |
@@ -270,7 +270,7 @@ static char *strDoutEvent[] = | |||
270 | "EV_DOUT_UNDERRUN", | 270 | "EV_DOUT_UNDERRUN", |
271 | }; | 271 | }; |
272 | 272 | ||
273 | static __attribute__((format(printf, 2, 3))) | 273 | static __printf(2, 3) |
274 | void dout_debug(struct FsmInst *fi, char *fmt, ...) | 274 | void dout_debug(struct FsmInst *fi, char *fmt, ...) |
275 | { | 275 | { |
276 | va_list args; | 276 | va_list args; |
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 6ed82add6ffa..6ddb795e31c5 100644 --- a/drivers/isdn/i4l/isdn_common.c +++ b/drivers/isdn/i4l/isdn_common.c | |||
@@ -2308,11 +2308,11 @@ static int __init isdn_init(void) | |||
2308 | int i; | 2308 | int i; |
2309 | char tmprev[50]; | 2309 | char tmprev[50]; |
2310 | 2310 | ||
2311 | if (!(dev = vmalloc(sizeof(isdn_dev)))) { | 2311 | dev = vzalloc(sizeof(isdn_dev)); |
2312 | if (!dev) { | ||
2312 | printk(KERN_WARNING "isdn: Could not allocate device-struct.\n"); | 2313 | printk(KERN_WARNING "isdn: Could not allocate device-struct.\n"); |
2313 | return -EIO; | 2314 | return -EIO; |
2314 | } | 2315 | } |
2315 | memset((char *) dev, 0, sizeof(isdn_dev)); | ||
2316 | init_timer(&dev->timer); | 2316 | init_timer(&dev->timer); |
2317 | dev->timer.function = isdn_timer_funct; | 2317 | dev->timer.function = isdn_timer_funct; |
2318 | spin_lock_init(&dev->lock); | 2318 | spin_lock_init(&dev->lock); |
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index d8504279e502..2c26b64ebbea 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -750,6 +750,7 @@ isdn_tty_modem_hup(modem_info * info, int local) | |||
750 | * supplementary service (CAPI 2.0 part III) | 750 | * supplementary service (CAPI 2.0 part III) |
751 | */ | 751 | */ |
752 | #include <linux/isdn/capicmd.h> | 752 | #include <linux/isdn/capicmd.h> |
753 | #include <linux/module.h> | ||
753 | 754 | ||
754 | int | 755 | int |
755 | isdn_tty_capi_facility(capi_msg *cm) { | 756 | isdn_tty_capi_facility(capi_msg *cm) { |
@@ -1693,7 +1694,7 @@ isdn_tty_close(struct tty_struct *tty, struct file *filp) | |||
1693 | * line status register. | 1694 | * line status register. |
1694 | */ | 1695 | */ |
1695 | if (info->flags & ISDN_ASYNC_INITIALIZED) { | 1696 | if (info->flags & ISDN_ASYNC_INITIALIZED) { |
1696 | tty_wait_until_sent(tty, 3000); /* 30 seconds timeout */ | 1697 | tty_wait_until_sent_from_close(tty, 3000); /* 30 seconds timeout */ |
1697 | /* | 1698 | /* |
1698 | * Before we drop DTR, make sure the UART transmitter | 1699 | * Before we drop DTR, make sure the UART transmitter |
1699 | * has completely drained; this is especially | 1700 | * has completely drained; this is especially |
diff --git a/drivers/isdn/mISDN/clock.c b/drivers/isdn/mISDN/clock.c index 1fa629b3b940..7418f2d811d8 100644 --- a/drivers/isdn/mISDN/clock.c +++ b/drivers/isdn/mISDN/clock.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/stddef.h> | 38 | #include <linux/stddef.h> |
39 | #include <linux/spinlock.h> | 39 | #include <linux/spinlock.h> |
40 | #include <linux/mISDNif.h> | 40 | #include <linux/mISDNif.h> |
41 | #include <linux/export.h> | ||
41 | #include "core.h" | 42 | #include "core.h" |
42 | 43 | ||
43 | static u_int *debug; | 44 | static u_int *debug; |
diff --git a/drivers/isdn/mISDN/dsp_audio.c b/drivers/isdn/mISDN/dsp_audio.c index 9c7c6451bf3d..b8f18bd09e43 100644 --- a/drivers/isdn/mISDN/dsp_audio.c +++ b/drivers/isdn/mISDN/dsp_audio.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
13 | #include <linux/mISDNif.h> | 13 | #include <linux/mISDNif.h> |
14 | #include <linux/mISDNdsp.h> | 14 | #include <linux/mISDNdsp.h> |
15 | #include <linux/export.h> | ||
15 | #include "core.h" | 16 | #include "core.h" |
16 | #include "dsp.h" | 17 | #include "dsp.h" |
17 | 18 | ||
diff --git a/drivers/isdn/mISDN/dsp_core.c b/drivers/isdn/mISDN/dsp_core.c index 2877291a9ed8..0c41553ce684 100644 --- a/drivers/isdn/mISDN/dsp_core.c +++ b/drivers/isdn/mISDN/dsp_core.c | |||
@@ -1052,12 +1052,11 @@ dspcreate(struct channel_req *crq) | |||
1052 | if (crq->protocol != ISDN_P_B_L2DSP | 1052 | if (crq->protocol != ISDN_P_B_L2DSP |
1053 | && crq->protocol != ISDN_P_B_L2DSPHDLC) | 1053 | && crq->protocol != ISDN_P_B_L2DSPHDLC) |
1054 | return -EPROTONOSUPPORT; | 1054 | return -EPROTONOSUPPORT; |
1055 | ndsp = vmalloc(sizeof(struct dsp)); | 1055 | ndsp = vzalloc(sizeof(struct dsp)); |
1056 | if (!ndsp) { | 1056 | if (!ndsp) { |
1057 | printk(KERN_ERR "%s: vmalloc struct dsp failed\n", __func__); | 1057 | printk(KERN_ERR "%s: vmalloc struct dsp failed\n", __func__); |
1058 | return -ENOMEM; | 1058 | return -ENOMEM; |
1059 | } | 1059 | } |
1060 | memset(ndsp, 0, sizeof(struct dsp)); | ||
1061 | if (dsp_debug & DEBUG_DSP_CTRL) | 1060 | if (dsp_debug & DEBUG_DSP_CTRL) |
1062 | printk(KERN_DEBUG "%s: creating new dsp instance\n", __func__); | 1061 | printk(KERN_DEBUG "%s: creating new dsp instance\n", __func__); |
1063 | 1062 | ||
diff --git a/drivers/isdn/mISDN/dsp_pipeline.c b/drivers/isdn/mISDN/dsp_pipeline.c index 621f31007095..b6c9a5889346 100644 --- a/drivers/isdn/mISDN/dsp_pipeline.c +++ b/drivers/isdn/mISDN/dsp_pipeline.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/string.h> | 30 | #include <linux/string.h> |
31 | #include <linux/mISDNif.h> | 31 | #include <linux/mISDNif.h> |
32 | #include <linux/mISDNdsp.h> | 32 | #include <linux/mISDNdsp.h> |
33 | #include <linux/export.h> | ||
33 | #include "dsp.h" | 34 | #include "dsp.h" |
34 | #include "dsp_hwec.h" | 35 | #include "dsp_hwec.h" |
35 | 36 | ||
diff --git a/drivers/isdn/mISDN/l1oip_codec.c b/drivers/isdn/mISDN/l1oip_codec.c index bbfd1b863ed3..5a89972624d8 100644 --- a/drivers/isdn/mISDN/l1oip_codec.c +++ b/drivers/isdn/mISDN/l1oip_codec.c | |||
@@ -330,14 +330,12 @@ l1oip_4bit_alloc(int ulaw) | |||
330 | return 0; | 330 | return 0; |
331 | 331 | ||
332 | /* alloc conversion tables */ | 332 | /* alloc conversion tables */ |
333 | table_com = vmalloc(65536); | 333 | table_com = vzalloc(65536); |
334 | table_dec = vmalloc(512); | 334 | table_dec = vzalloc(512); |
335 | if (!table_com || !table_dec) { | 335 | if (!table_com || !table_dec) { |
336 | l1oip_4bit_free(); | 336 | l1oip_4bit_free(); |
337 | return -ENOMEM; | 337 | return -ENOMEM; |
338 | } | 338 | } |
339 | memset(table_com, 0, 65536); | ||
340 | memset(table_dec, 0, 512); | ||
341 | /* generate compression table */ | 339 | /* generate compression table */ |
342 | i1 = 0; | 340 | i1 = 0; |
343 | while (i1 < 256) { | 341 | while (i1 < 256) { |
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index 8e325227b4c0..738ea8dd0adf 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/mISDNif.h> | 18 | #include <linux/mISDNif.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/export.h> | ||
20 | #include "core.h" | 21 | #include "core.h" |
21 | 22 | ||
22 | static u_int *debug; | 23 | static u_int *debug; |