diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-02-12 03:53:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:34 -0500 |
commit | 010046d0c805ac3bfab1740f4a056af70b84ea46 (patch) | |
tree | 70e621b0caaa455aa5b61a6d815bae77295727cf /drivers | |
parent | 390414badebe45a2f556a04ece1fd99191aa6397 (diff) |
[PATCH] drivers/isdn/pcbit/: proper prototypes
Add correct prototypes in header files for global functions and variables.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/pcbit/drv.c | 4 | ||||
-rw-r--r-- | drivers/isdn/pcbit/edss1.c | 6 | ||||
-rw-r--r-- | drivers/isdn/pcbit/edss1.h | 7 | ||||
-rw-r--r-- | drivers/isdn/pcbit/layer2.c | 16 | ||||
-rw-r--r-- | drivers/isdn/pcbit/module.c | 3 | ||||
-rw-r--r-- | drivers/isdn/pcbit/pcbit.h | 8 |
6 files changed, 12 insertions, 32 deletions
diff --git a/drivers/isdn/pcbit/drv.c b/drivers/isdn/pcbit/drv.c index 11c1b0b6e390..386c5ce64844 100644 --- a/drivers/isdn/pcbit/drv.c +++ b/drivers/isdn/pcbit/drv.c | |||
@@ -774,10 +774,6 @@ static void pcbit_logstat(struct pcbit_dev *dev, char *str) | |||
774 | dev->dev_if->statcallb(&ictl); | 774 | dev->dev_if->statcallb(&ictl); |
775 | } | 775 | } |
776 | 776 | ||
777 | extern char * isdn_state_table[]; | ||
778 | extern char * strisdnevent(unsigned short); | ||
779 | |||
780 | |||
781 | void pcbit_state_change(struct pcbit_dev * dev, struct pcbit_chan * chan, | 777 | void pcbit_state_change(struct pcbit_dev * dev, struct pcbit_chan * chan, |
782 | unsigned short i, unsigned short ev, unsigned short f) | 778 | unsigned short i, unsigned short ev, unsigned short f) |
783 | { | 779 | { |
diff --git a/drivers/isdn/pcbit/edss1.c b/drivers/isdn/pcbit/edss1.c index 93ca7de5670b..1ad8b07efd8b 100644 --- a/drivers/isdn/pcbit/edss1.c +++ b/drivers/isdn/pcbit/edss1.c | |||
@@ -35,12 +35,6 @@ | |||
35 | #include "callbacks.h" | 35 | #include "callbacks.h" |
36 | 36 | ||
37 | 37 | ||
38 | extern void pcbit_state_change(struct pcbit_dev *, struct pcbit_chan *, | ||
39 | unsigned short i, unsigned short ev, | ||
40 | unsigned short f); | ||
41 | |||
42 | extern struct pcbit_dev * dev_pcbit[MAX_PCBIT_CARDS]; | ||
43 | |||
44 | char * isdn_state_table[] = { | 38 | char * isdn_state_table[] = { |
45 | "Closed", | 39 | "Closed", |
46 | "Call initiated", | 40 | "Call initiated", |
diff --git a/drivers/isdn/pcbit/edss1.h b/drivers/isdn/pcbit/edss1.h index 6bb587005b86..0b64f97015d8 100644 --- a/drivers/isdn/pcbit/edss1.h +++ b/drivers/isdn/pcbit/edss1.h | |||
@@ -90,9 +90,12 @@ struct fsm_timer_entry { | |||
90 | unsigned long timeout; /* in seconds */ | 90 | unsigned long timeout; /* in seconds */ |
91 | }; | 91 | }; |
92 | 92 | ||
93 | extern char * isdn_state_table[]; | ||
94 | |||
95 | void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *, | ||
96 | unsigned short event, struct callb_data *); | ||
97 | char * strisdnevent(ushort ev); | ||
93 | 98 | ||
94 | extern void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *, | ||
95 | unsigned short event, struct callb_data *); | ||
96 | #endif | 99 | #endif |
97 | 100 | ||
98 | 101 | ||
diff --git a/drivers/isdn/pcbit/layer2.c b/drivers/isdn/pcbit/layer2.c index eafcce5e656a..58eee50c8e26 100644 --- a/drivers/isdn/pcbit/layer2.c +++ b/drivers/isdn/pcbit/layer2.c | |||
@@ -47,22 +47,6 @@ | |||
47 | #undef DEBUG_FRAG | 47 | #undef DEBUG_FRAG |
48 | 48 | ||
49 | 49 | ||
50 | |||
51 | /* | ||
52 | * task queue struct | ||
53 | */ | ||
54 | |||
55 | |||
56 | |||
57 | /* | ||
58 | * Layer 3 packet demultiplexer | ||
59 | * drv.c | ||
60 | */ | ||
61 | |||
62 | extern void pcbit_l3_receive(struct pcbit_dev *dev, ulong msg, | ||
63 | struct sk_buff *skb, | ||
64 | ushort hdr_len, ushort refnum); | ||
65 | |||
66 | /* | 50 | /* |
67 | * Prototypes | 51 | * Prototypes |
68 | */ | 52 | */ |
diff --git a/drivers/isdn/pcbit/module.c b/drivers/isdn/pcbit/module.c index 282073a35d6a..7b7b1777f09b 100644 --- a/drivers/isdn/pcbit/module.c +++ b/drivers/isdn/pcbit/module.c | |||
@@ -32,9 +32,6 @@ module_param_array(irq, int, NULL, 0); | |||
32 | static int num_boards; | 32 | static int num_boards; |
33 | struct pcbit_dev * dev_pcbit[MAX_PCBIT_CARDS]; | 33 | struct pcbit_dev * dev_pcbit[MAX_PCBIT_CARDS]; |
34 | 34 | ||
35 | extern void pcbit_terminate(int board); | ||
36 | extern int pcbit_init_dev(int board, int mem_base, int irq); | ||
37 | |||
38 | static int __init pcbit_init(void) | 35 | static int __init pcbit_init(void) |
39 | { | 36 | { |
40 | int board; | 37 | int board; |
diff --git a/drivers/isdn/pcbit/pcbit.h b/drivers/isdn/pcbit/pcbit.h index 19c18e88ff16..d76fffc88b82 100644 --- a/drivers/isdn/pcbit/pcbit.h +++ b/drivers/isdn/pcbit/pcbit.h | |||
@@ -166,6 +166,12 @@ struct pcbit_ioctl { | |||
166 | #define L2_RUNNING 5 | 166 | #define L2_RUNNING 5 |
167 | #define L2_ERROR 6 | 167 | #define L2_ERROR 6 |
168 | 168 | ||
169 | extern void pcbit_deliver(struct work_struct *work); | 169 | void pcbit_deliver(struct work_struct *work); |
170 | int pcbit_init_dev(int board, int mem_base, int irq); | ||
171 | void pcbit_terminate(int board); | ||
172 | void pcbit_l3_receive(struct pcbit_dev * dev, ulong msg, struct sk_buff * skb, | ||
173 | ushort hdr_len, ushort refnum); | ||
174 | void pcbit_state_change(struct pcbit_dev * dev, struct pcbit_chan * chan, | ||
175 | unsigned short i, unsigned short ev, unsigned short f); | ||
170 | 176 | ||
171 | #endif | 177 | #endif |