diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/i4l/isdn_audio.c | 10 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_audio.h | 1 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_common.c | 6 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_common.h | 1 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_concap.c | 15 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_concap.h | 1 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_net.c | 10 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 4 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.h | 1 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_ttyfax.c | 6 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_x25iface.c | 36 |
11 files changed, 34 insertions, 57 deletions
diff --git a/drivers/isdn/i4l/isdn_audio.c b/drivers/isdn/i4l/isdn_audio.c index 5350836a4f98..2cc56d6a9fae 100644 --- a/drivers/isdn/i4l/isdn_audio.c +++ b/drivers/isdn/i4l/isdn_audio.c | |||
@@ -392,16 +392,6 @@ isdn_audio_adpcm2xlaw(adpcm_state * s, int fmt, unsigned char *in, | |||
392 | } | 392 | } |
393 | 393 | ||
394 | int | 394 | int |
395 | isdn_audio_2adpcm_flush(adpcm_state * s, unsigned char *out) | ||
396 | { | ||
397 | int olen = 0; | ||
398 | |||
399 | if (s->nleft) | ||
400 | isdn_audio_put_bits(0, 8 - s->nleft, s, &out, &olen); | ||
401 | return olen; | ||
402 | } | ||
403 | |||
404 | int | ||
405 | isdn_audio_xlaw2adpcm(adpcm_state * s, int fmt, unsigned char *in, | 395 | isdn_audio_xlaw2adpcm(adpcm_state * s, int fmt, unsigned char *in, |
406 | unsigned char *out, int len) | 396 | unsigned char *out, int len) |
407 | { | 397 | { |
diff --git a/drivers/isdn/i4l/isdn_audio.h b/drivers/isdn/i4l/isdn_audio.h index 5a977b21dcfa..013c3582e0d1 100644 --- a/drivers/isdn/i4l/isdn_audio.h +++ b/drivers/isdn/i4l/isdn_audio.h | |||
@@ -35,7 +35,6 @@ extern void isdn_audio_alaw2ulaw(unsigned char *, unsigned long); | |||
35 | extern adpcm_state *isdn_audio_adpcm_init(adpcm_state *, int); | 35 | extern adpcm_state *isdn_audio_adpcm_init(adpcm_state *, int); |
36 | extern int isdn_audio_adpcm2xlaw(adpcm_state *, int, unsigned char *, unsigned char *, int); | 36 | extern int isdn_audio_adpcm2xlaw(adpcm_state *, int, unsigned char *, unsigned char *, int); |
37 | extern int isdn_audio_xlaw2adpcm(adpcm_state *, int, unsigned char *, unsigned char *, int); | 37 | extern int isdn_audio_xlaw2adpcm(adpcm_state *, int, unsigned char *, unsigned char *, int); |
38 | extern int isdn_audio_2adpcm_flush(adpcm_state * s, unsigned char *out); | ||
39 | extern void isdn_audio_calc_dtmf(modem_info *, unsigned char *, int, int); | 38 | extern void isdn_audio_calc_dtmf(modem_info *, unsigned char *, int, int); |
40 | extern void isdn_audio_eval_dtmf(modem_info *); | 39 | extern void isdn_audio_eval_dtmf(modem_info *); |
41 | dtmf_state *isdn_audio_dtmf_init(dtmf_state *); | 40 | dtmf_state *isdn_audio_dtmf_init(dtmf_state *); |
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index c406df6f268a..eebcb0b97f0e 100644 --- a/drivers/isdn/i4l/isdn_common.c +++ b/drivers/isdn/i4l/isdn_common.c | |||
@@ -67,7 +67,7 @@ static isdn_divert_if *divert_if; /* = NULL */ | |||
67 | static int isdn_writebuf_stub(int, int, const u_char __user *, int); | 67 | static int isdn_writebuf_stub(int, int, const u_char __user *, int); |
68 | static void set_global_features(void); | 68 | static void set_global_features(void); |
69 | static int isdn_wildmat(char *s, char *p); | 69 | static int isdn_wildmat(char *s, char *p); |
70 | 70 | static int isdn_add_channels(isdn_driver_t *d, int drvidx, int n, int adding); | |
71 | 71 | ||
72 | static inline void | 72 | static inline void |
73 | isdn_lock_driver(isdn_driver_t *drv) | 73 | isdn_lock_driver(isdn_driver_t *drv) |
@@ -388,7 +388,7 @@ isdn_all_eaz(int di, int ch) | |||
388 | */ | 388 | */ |
389 | #include <linux/isdn/capicmd.h> | 389 | #include <linux/isdn/capicmd.h> |
390 | 390 | ||
391 | int | 391 | static int |
392 | isdn_capi_rec_hl_msg(capi_msg *cm) { | 392 | isdn_capi_rec_hl_msg(capi_msg *cm) { |
393 | 393 | ||
394 | int di; | 394 | int di; |
@@ -1923,7 +1923,7 @@ isdn_writebuf_skb_stub(int drvidx, int chan, int ack, struct sk_buff *skb) | |||
1923 | return ret; | 1923 | return ret; |
1924 | } | 1924 | } |
1925 | 1925 | ||
1926 | int | 1926 | static int |
1927 | isdn_add_channels(isdn_driver_t *d, int drvidx, int n, int adding) | 1927 | isdn_add_channels(isdn_driver_t *d, int drvidx, int n, int adding) |
1928 | { | 1928 | { |
1929 | int j, k, m; | 1929 | int j, k, m; |
diff --git a/drivers/isdn/i4l/isdn_common.h b/drivers/isdn/i4l/isdn_common.h index 808135c427ad..e27e9c3a81ed 100644 --- a/drivers/isdn/i4l/isdn_common.h +++ b/drivers/isdn/i4l/isdn_common.h | |||
@@ -41,7 +41,6 @@ extern int isdn_get_free_channel(int, int, int, int, int, char *); | |||
41 | extern int isdn_writebuf_skb_stub(int, int, int, struct sk_buff *); | 41 | extern int isdn_writebuf_skb_stub(int, int, int, struct sk_buff *); |
42 | extern int register_isdn(isdn_if * i); | 42 | extern int register_isdn(isdn_if * i); |
43 | extern int isdn_msncmp( const char *, const char *); | 43 | extern int isdn_msncmp( const char *, const char *); |
44 | extern int isdn_add_channels(isdn_driver_t *, int, int, int); | ||
45 | #if defined(ISDN_DEBUG_NET_DUMP) || defined(ISDN_DEBUG_MODEM_DUMP) | 44 | #if defined(ISDN_DEBUG_NET_DUMP) || defined(ISDN_DEBUG_MODEM_DUMP) |
46 | extern void isdn_dumppkt(char *, u_char *, int, int); | 45 | extern void isdn_dumppkt(char *, u_char *, int, int); |
47 | #endif | 46 | #endif |
diff --git a/drivers/isdn/i4l/isdn_concap.c b/drivers/isdn/i4l/isdn_concap.c index 83a4f5382bc2..0193b6f7c70c 100644 --- a/drivers/isdn/i4l/isdn_concap.c +++ b/drivers/isdn/i4l/isdn_concap.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | 41 | ||
42 | int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb) | 42 | static int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb) |
43 | { | 43 | { |
44 | struct net_device *ndev = concap -> net_dev; | 44 | struct net_device *ndev = concap -> net_dev; |
45 | isdn_net_dev *nd = ((isdn_net_local *) ndev->priv)->netdev; | 45 | isdn_net_dev *nd = ((isdn_net_local *) ndev->priv)->netdev; |
@@ -58,7 +58,7 @@ int isdn_concap_dl_data_req(struct concap_proto *concap, struct sk_buff *skb) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||
61 | int isdn_concap_dl_connect_req(struct concap_proto *concap) | 61 | static int isdn_concap_dl_connect_req(struct concap_proto *concap) |
62 | { | 62 | { |
63 | struct net_device *ndev = concap -> net_dev; | 63 | struct net_device *ndev = concap -> net_dev; |
64 | isdn_net_local *lp = (isdn_net_local *) ndev->priv; | 64 | isdn_net_local *lp = (isdn_net_local *) ndev->priv; |
@@ -71,7 +71,7 @@ int isdn_concap_dl_connect_req(struct concap_proto *concap) | |||
71 | return ret; | 71 | return ret; |
72 | } | 72 | } |
73 | 73 | ||
74 | int isdn_concap_dl_disconn_req(struct concap_proto *concap) | 74 | static int isdn_concap_dl_disconn_req(struct concap_proto *concap) |
75 | { | 75 | { |
76 | IX25DEBUG( "isdn_concap_dl_disconn_req: %s \n", concap -> net_dev -> name); | 76 | IX25DEBUG( "isdn_concap_dl_disconn_req: %s \n", concap -> net_dev -> name); |
77 | 77 | ||
@@ -85,15 +85,6 @@ struct concap_device_ops isdn_concap_reliable_dl_dops = { | |||
85 | &isdn_concap_dl_disconn_req | 85 | &isdn_concap_dl_disconn_req |
86 | }; | 86 | }; |
87 | 87 | ||
88 | struct concap_device_ops isdn_concap_demand_dial_dops = { | ||
89 | NULL, /* set this first entry to something like &isdn_net_start_xmit, | ||
90 | but the entry part of the current isdn_net_start_xmit must be | ||
91 | separated first. */ | ||
92 | /* no connection control for demand dial semantics */ | ||
93 | NULL, | ||
94 | NULL, | ||
95 | }; | ||
96 | |||
97 | /* The following should better go into a dedicated source file such that | 88 | /* The following should better go into a dedicated source file such that |
98 | this sourcefile does not need to include any protocol specific header | 89 | this sourcefile does not need to include any protocol specific header |
99 | files. For now: | 90 | files. For now: |
diff --git a/drivers/isdn/i4l/isdn_concap.h b/drivers/isdn/i4l/isdn_concap.h index 306eb180438f..6ac7e0445ea5 100644 --- a/drivers/isdn/i4l/isdn_concap.h +++ b/drivers/isdn/i4l/isdn_concap.h | |||
@@ -8,7 +8,6 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | extern struct concap_device_ops isdn_concap_reliable_dl_dops; | 10 | extern struct concap_device_ops isdn_concap_reliable_dl_dops; |
11 | extern struct concap_device_ops isdn_concap_demand_dial_dops; | ||
12 | extern struct concap_proto * isdn_concap_new( int ); | 11 | extern struct concap_proto * isdn_concap_new( int ); |
13 | 12 | ||
14 | 13 | ||
diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c index e2b790e34510..f30e8e63ae0d 100644 --- a/drivers/isdn/i4l/isdn_net.c +++ b/drivers/isdn/i4l/isdn_net.c | |||
@@ -176,7 +176,7 @@ static __inline__ void isdn_net_zero_frame_cnt(isdn_net_local *lp) | |||
176 | 176 | ||
177 | /* Prototypes */ | 177 | /* Prototypes */ |
178 | 178 | ||
179 | int isdn_net_force_dial_lp(isdn_net_local *); | 179 | static int isdn_net_force_dial_lp(isdn_net_local *); |
180 | static int isdn_net_start_xmit(struct sk_buff *, struct net_device *); | 180 | static int isdn_net_start_xmit(struct sk_buff *, struct net_device *); |
181 | 181 | ||
182 | static void isdn_net_ciscohdlck_connected(isdn_net_local *lp); | 182 | static void isdn_net_ciscohdlck_connected(isdn_net_local *lp); |
@@ -312,7 +312,7 @@ isdn_net_unbind_channel(isdn_net_local * lp) | |||
312 | * Since this function is called every second, simply reset the | 312 | * Since this function is called every second, simply reset the |
313 | * byte-counter of the interface after copying it to the cps-variable. | 313 | * byte-counter of the interface after copying it to the cps-variable. |
314 | */ | 314 | */ |
315 | unsigned long last_jiffies = -HZ; | 315 | static unsigned long last_jiffies = -HZ; |
316 | 316 | ||
317 | void | 317 | void |
318 | isdn_net_autohup(void) | 318 | isdn_net_autohup(void) |
@@ -1131,7 +1131,7 @@ isdn_net_adjust_hdr(struct sk_buff *skb, struct net_device *dev) | |||
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | 1133 | ||
1134 | void isdn_net_tx_timeout(struct net_device * ndev) | 1134 | static void isdn_net_tx_timeout(struct net_device * ndev) |
1135 | { | 1135 | { |
1136 | isdn_net_local *lp = (isdn_net_local *) ndev->priv; | 1136 | isdn_net_local *lp = (isdn_net_local *) ndev->priv; |
1137 | 1137 | ||
@@ -1424,7 +1424,7 @@ isdn_net_ciscohdlck_alloc_skb(isdn_net_local *lp, int len) | |||
1424 | } | 1424 | } |
1425 | 1425 | ||
1426 | /* cisco hdlck device private ioctls */ | 1426 | /* cisco hdlck device private ioctls */ |
1427 | int | 1427 | static int |
1428 | isdn_ciscohdlck_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | 1428 | isdn_ciscohdlck_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) |
1429 | { | 1429 | { |
1430 | isdn_net_local *lp = (isdn_net_local *) dev->priv; | 1430 | isdn_net_local *lp = (isdn_net_local *) dev->priv; |
@@ -2461,7 +2461,7 @@ isdn_net_findif(char *name) | |||
2461 | * This is called from the userlevel-routine below or | 2461 | * This is called from the userlevel-routine below or |
2462 | * from isdn_net_start_xmit(). | 2462 | * from isdn_net_start_xmit(). |
2463 | */ | 2463 | */ |
2464 | int | 2464 | static int |
2465 | isdn_net_force_dial_lp(isdn_net_local * lp) | 2465 | isdn_net_force_dial_lp(isdn_net_local * lp) |
2466 | { | 2466 | { |
2467 | if ((!(lp->flags & ISDN_NET_CONNECTED)) && !lp->dialstate) { | 2467 | if ((!(lp->flags & ISDN_NET_CONNECTED)) && !lp->dialstate) { |
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index e21007eca0f0..ad5aa38fb5a6 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -273,7 +273,7 @@ isdn_tty_rcv_skb(int i, int di, int channel, struct sk_buff *skb) | |||
273 | return 1; | 273 | return 1; |
274 | } | 274 | } |
275 | 275 | ||
276 | void | 276 | static void |
277 | isdn_tty_cleanup_xmit(modem_info * info) | 277 | isdn_tty_cleanup_xmit(modem_info * info) |
278 | { | 278 | { |
279 | skb_queue_purge(&info->xmit_queue); | 279 | skb_queue_purge(&info->xmit_queue); |
@@ -560,7 +560,7 @@ isdn_tty_modem_ncarrier(modem_info * info) | |||
560 | /* | 560 | /* |
561 | * return the usage calculated by si and layer 2 protocol | 561 | * return the usage calculated by si and layer 2 protocol |
562 | */ | 562 | */ |
563 | int | 563 | static int |
564 | isdn_calc_usage(int si, int l2) | 564 | isdn_calc_usage(int si, int l2) |
565 | { | 565 | { |
566 | int usg = ISDN_USAGE_MODEM; | 566 | int usg = ISDN_USAGE_MODEM; |
diff --git a/drivers/isdn/i4l/isdn_tty.h b/drivers/isdn/i4l/isdn_tty.h index 2423a7ff0cc3..9f0fa9501f4d 100644 --- a/drivers/isdn/i4l/isdn_tty.h +++ b/drivers/isdn/i4l/isdn_tty.h | |||
@@ -109,7 +109,6 @@ extern int isdn_tty_modem_init(void); | |||
109 | extern void isdn_tty_exit(void); | 109 | extern void isdn_tty_exit(void); |
110 | extern void isdn_tty_readmodem(void); | 110 | extern void isdn_tty_readmodem(void); |
111 | extern int isdn_tty_find_icall(int, int, setup_parm *); | 111 | extern int isdn_tty_find_icall(int, int, setup_parm *); |
112 | extern void isdn_tty_cleanup_xmit(modem_info *); | ||
113 | extern int isdn_tty_stat_callback(int, isdn_ctrl *); | 112 | extern int isdn_tty_stat_callback(int, isdn_ctrl *); |
114 | extern int isdn_tty_rcv_skb(int, int, int, struct sk_buff *); | 113 | extern int isdn_tty_rcv_skb(int, int, int, struct sk_buff *); |
115 | extern int isdn_tty_capi_facility(capi_msg *cm); | 114 | extern int isdn_tty_capi_facility(capi_msg *cm); |
diff --git a/drivers/isdn/i4l/isdn_ttyfax.c b/drivers/isdn/i4l/isdn_ttyfax.c index ce2c3ef92e46..a943d078bacc 100644 --- a/drivers/isdn/i4l/isdn_ttyfax.c +++ b/drivers/isdn/i4l/isdn_ttyfax.c | |||
@@ -148,7 +148,7 @@ isdn_tty_fax_modem_result(int code, modem_info * info) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | int | 151 | static int |
152 | isdn_tty_fax_command1(modem_info * info, isdn_ctrl * c) | 152 | isdn_tty_fax_command1(modem_info * info, isdn_ctrl * c) |
153 | { | 153 | { |
154 | static char *msg[] = | 154 | static char *msg[] = |
@@ -316,7 +316,7 @@ isdn_tty_fax_bitorder(modem_info * info, struct sk_buff *skb) | |||
316 | * Parse AT+F.. FAX class 1 commands | 316 | * Parse AT+F.. FAX class 1 commands |
317 | */ | 317 | */ |
318 | 318 | ||
319 | int | 319 | static int |
320 | isdn_tty_cmd_FCLASS1(char **p, modem_info * info) | 320 | isdn_tty_cmd_FCLASS1(char **p, modem_info * info) |
321 | { | 321 | { |
322 | static char *cmd[] = | 322 | static char *cmd[] = |
@@ -408,7 +408,7 @@ isdn_tty_cmd_FCLASS1(char **p, modem_info * info) | |||
408 | * Parse AT+F.. FAX class 2 commands | 408 | * Parse AT+F.. FAX class 2 commands |
409 | */ | 409 | */ |
410 | 410 | ||
411 | int | 411 | static int |
412 | isdn_tty_cmd_FCLASS2(char **p, modem_info * info) | 412 | isdn_tty_cmd_FCLASS2(char **p, modem_info * info) |
413 | { | 413 | { |
414 | atemu *m = &info->emu; | 414 | atemu *m = &info->emu; |
diff --git a/drivers/isdn/i4l/isdn_x25iface.c b/drivers/isdn/i4l/isdn_x25iface.c index 4ab7600cf9c1..edf14a2aa3c8 100644 --- a/drivers/isdn/i4l/isdn_x25iface.c +++ b/drivers/isdn/i4l/isdn_x25iface.c | |||
@@ -40,15 +40,15 @@ typedef struct isdn_x25iface_proto_data { | |||
40 | 40 | ||
41 | 41 | ||
42 | /* is now in header file (extern): struct concap_proto * isdn_x25iface_proto_new(void); */ | 42 | /* is now in header file (extern): struct concap_proto * isdn_x25iface_proto_new(void); */ |
43 | void isdn_x25iface_proto_del( struct concap_proto * ); | 43 | static void isdn_x25iface_proto_del( struct concap_proto * ); |
44 | int isdn_x25iface_proto_close( struct concap_proto * ); | 44 | static int isdn_x25iface_proto_close( struct concap_proto * ); |
45 | int isdn_x25iface_proto_restart( struct concap_proto *, | 45 | static int isdn_x25iface_proto_restart( struct concap_proto *, |
46 | struct net_device *, | 46 | struct net_device *, |
47 | struct concap_device_ops *); | 47 | struct concap_device_ops *); |
48 | int isdn_x25iface_xmit( struct concap_proto *, struct sk_buff * ); | 48 | static int isdn_x25iface_xmit( struct concap_proto *, struct sk_buff * ); |
49 | int isdn_x25iface_receive( struct concap_proto *, struct sk_buff * ); | 49 | static int isdn_x25iface_receive( struct concap_proto *, struct sk_buff * ); |
50 | int isdn_x25iface_connect_ind( struct concap_proto * ); | 50 | static int isdn_x25iface_connect_ind( struct concap_proto * ); |
51 | int isdn_x25iface_disconn_ind( struct concap_proto * ); | 51 | static int isdn_x25iface_disconn_ind( struct concap_proto * ); |
52 | 52 | ||
53 | 53 | ||
54 | static struct concap_proto_ops ix25_pops = { | 54 | static struct concap_proto_ops ix25_pops = { |
@@ -102,7 +102,7 @@ struct concap_proto * isdn_x25iface_proto_new(void) | |||
102 | 102 | ||
103 | /* close the x25iface encapsulation protocol | 103 | /* close the x25iface encapsulation protocol |
104 | */ | 104 | */ |
105 | int isdn_x25iface_proto_close(struct concap_proto *cprot){ | 105 | static int isdn_x25iface_proto_close(struct concap_proto *cprot){ |
106 | 106 | ||
107 | ix25_pdata_t *tmp; | 107 | ix25_pdata_t *tmp; |
108 | int ret = 0; | 108 | int ret = 0; |
@@ -129,7 +129,7 @@ int isdn_x25iface_proto_close(struct concap_proto *cprot){ | |||
129 | 129 | ||
130 | /* Delete the x25iface encapsulation protocol instance | 130 | /* Delete the x25iface encapsulation protocol instance |
131 | */ | 131 | */ |
132 | void isdn_x25iface_proto_del(struct concap_proto *cprot){ | 132 | static void isdn_x25iface_proto_del(struct concap_proto *cprot){ |
133 | 133 | ||
134 | ix25_pdata_t * tmp; | 134 | ix25_pdata_t * tmp; |
135 | 135 | ||
@@ -158,9 +158,9 @@ void isdn_x25iface_proto_del(struct concap_proto *cprot){ | |||
158 | 158 | ||
159 | /* (re-)initialize the data structures for x25iface encapsulation | 159 | /* (re-)initialize the data structures for x25iface encapsulation |
160 | */ | 160 | */ |
161 | int isdn_x25iface_proto_restart(struct concap_proto *cprot, | 161 | static int isdn_x25iface_proto_restart(struct concap_proto *cprot, |
162 | struct net_device *ndev, | 162 | struct net_device *ndev, |
163 | struct concap_device_ops *dops) | 163 | struct concap_device_ops *dops) |
164 | { | 164 | { |
165 | ix25_pdata_t * pda = cprot -> proto_data ; | 165 | ix25_pdata_t * pda = cprot -> proto_data ; |
166 | ulong flags; | 166 | ulong flags; |
@@ -187,7 +187,7 @@ int isdn_x25iface_proto_restart(struct concap_proto *cprot, | |||
187 | 187 | ||
188 | /* deliver a dl_data frame received from i4l HL driver to the network layer | 188 | /* deliver a dl_data frame received from i4l HL driver to the network layer |
189 | */ | 189 | */ |
190 | int isdn_x25iface_receive(struct concap_proto *cprot, struct sk_buff *skb) | 190 | static int isdn_x25iface_receive(struct concap_proto *cprot, struct sk_buff *skb) |
191 | { | 191 | { |
192 | IX25DEBUG( "isdn_x25iface_receive %s \n", MY_DEVNAME(cprot->net_dev) ); | 192 | IX25DEBUG( "isdn_x25iface_receive %s \n", MY_DEVNAME(cprot->net_dev) ); |
193 | if ( ( (ix25_pdata_t*) (cprot->proto_data) ) | 193 | if ( ( (ix25_pdata_t*) (cprot->proto_data) ) |
@@ -206,7 +206,7 @@ int isdn_x25iface_receive(struct concap_proto *cprot, struct sk_buff *skb) | |||
206 | 206 | ||
207 | /* a connection set up is indicated by lower layer | 207 | /* a connection set up is indicated by lower layer |
208 | */ | 208 | */ |
209 | int isdn_x25iface_connect_ind(struct concap_proto *cprot) | 209 | static int isdn_x25iface_connect_ind(struct concap_proto *cprot) |
210 | { | 210 | { |
211 | struct sk_buff * skb = dev_alloc_skb(1); | 211 | struct sk_buff * skb = dev_alloc_skb(1); |
212 | enum wan_states *state_p | 212 | enum wan_states *state_p |
@@ -235,7 +235,7 @@ int isdn_x25iface_connect_ind(struct concap_proto *cprot) | |||
235 | 235 | ||
236 | /* a disconnect is indicated by lower layer | 236 | /* a disconnect is indicated by lower layer |
237 | */ | 237 | */ |
238 | int isdn_x25iface_disconn_ind(struct concap_proto *cprot) | 238 | static int isdn_x25iface_disconn_ind(struct concap_proto *cprot) |
239 | { | 239 | { |
240 | struct sk_buff *skb; | 240 | struct sk_buff *skb; |
241 | enum wan_states *state_p | 241 | enum wan_states *state_p |
@@ -264,7 +264,7 @@ int isdn_x25iface_disconn_ind(struct concap_proto *cprot) | |||
264 | /* process a frame handed over to us from linux network layer. First byte | 264 | /* process a frame handed over to us from linux network layer. First byte |
265 | semantics as defined in Documentation/networking/x25-iface.txt | 265 | semantics as defined in Documentation/networking/x25-iface.txt |
266 | */ | 266 | */ |
267 | int isdn_x25iface_xmit(struct concap_proto *cprot, struct sk_buff *skb) | 267 | static int isdn_x25iface_xmit(struct concap_proto *cprot, struct sk_buff *skb) |
268 | { | 268 | { |
269 | unsigned char firstbyte = skb->data[0]; | 269 | unsigned char firstbyte = skb->data[0]; |
270 | enum wan_states *state = &((ix25_pdata_t*)cprot->proto_data)->state; | 270 | enum wan_states *state = &((ix25_pdata_t*)cprot->proto_data)->state; |