Commit 010046d0 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] drivers/isdn/pcbit/: proper prototypes

Add correct prototypes in header files for global functions and variables.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 390414ba
...@@ -774,10 +774,6 @@ static void pcbit_logstat(struct pcbit_dev *dev, char *str) ...@@ -774,10 +774,6 @@ static void pcbit_logstat(struct pcbit_dev *dev, char *str)
dev->dev_if->statcallb(&ictl); dev->dev_if->statcallb(&ictl);
} }
extern char * isdn_state_table[];
extern char * strisdnevent(unsigned short);
void pcbit_state_change(struct pcbit_dev * dev, struct pcbit_chan * chan, void pcbit_state_change(struct pcbit_dev * dev, struct pcbit_chan * chan,
unsigned short i, unsigned short ev, unsigned short f) unsigned short i, unsigned short ev, unsigned short f)
{ {
......
...@@ -35,12 +35,6 @@ ...@@ -35,12 +35,6 @@
#include "callbacks.h" #include "callbacks.h"
extern void pcbit_state_change(struct pcbit_dev *, struct pcbit_chan *,
unsigned short i, unsigned short ev,
unsigned short f);
extern struct pcbit_dev * dev_pcbit[MAX_PCBIT_CARDS];
char * isdn_state_table[] = { char * isdn_state_table[] = {
"Closed", "Closed",
"Call initiated", "Call initiated",
......
...@@ -90,9 +90,12 @@ struct fsm_timer_entry { ...@@ -90,9 +90,12 @@ struct fsm_timer_entry {
unsigned long timeout; /* in seconds */ unsigned long timeout; /* in seconds */
}; };
extern char * isdn_state_table[];
extern void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *, void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *,
unsigned short event, struct callb_data *); unsigned short event, struct callb_data *);
char * strisdnevent(ushort ev);
#endif #endif
......
...@@ -47,22 +47,6 @@ ...@@ -47,22 +47,6 @@
#undef DEBUG_FRAG #undef DEBUG_FRAG
/*
* task queue struct
*/
/*
* Layer 3 packet demultiplexer
* drv.c
*/
extern void pcbit_l3_receive(struct pcbit_dev *dev, ulong msg,
struct sk_buff *skb,
ushort hdr_len, ushort refnum);
/* /*
* Prototypes * Prototypes
*/ */
......
...@@ -32,9 +32,6 @@ module_param_array(irq, int, NULL, 0); ...@@ -32,9 +32,6 @@ module_param_array(irq, int, NULL, 0);
static int num_boards; static int num_boards;
struct pcbit_dev * dev_pcbit[MAX_PCBIT_CARDS]; struct pcbit_dev * dev_pcbit[MAX_PCBIT_CARDS];
extern void pcbit_terminate(int board);
extern int pcbit_init_dev(int board, int mem_base, int irq);
static int __init pcbit_init(void) static int __init pcbit_init(void)
{ {
int board; int board;
......
...@@ -166,6 +166,12 @@ struct pcbit_ioctl { ...@@ -166,6 +166,12 @@ struct pcbit_ioctl {
#define L2_RUNNING 5 #define L2_RUNNING 5
#define L2_ERROR 6 #define L2_ERROR 6
extern void pcbit_deliver(struct work_struct *work); void pcbit_deliver(struct work_struct *work);
int pcbit_init_dev(int board, int mem_base, int irq);
void pcbit_terminate(int board);
void pcbit_l3_receive(struct pcbit_dev * dev, ulong msg, struct sk_buff * skb,
ushort hdr_len, ushort refnum);
void pcbit_state_change(struct pcbit_dev * dev, struct pcbit_chan * chan,
unsigned short i, unsigned short ev, unsigned short f);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment