Skip to content

Commit

Permalink
[PATCH] drivers/isdn/pcbit/: proper prototypes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Feb 12, 2007
1 parent 390414b commit 010046d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 32 deletions.
4 changes: 0 additions & 4 deletions drivers/isdn/pcbit/drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,10 +774,6 @@ static void pcbit_logstat(struct pcbit_dev *dev, char *str)
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,
unsigned short i, unsigned short ev, unsigned short f)
{
Expand Down
6 changes: 0 additions & 6 deletions drivers/isdn/pcbit/edss1.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
#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[] = {
"Closed",
"Call initiated",
Expand Down
7 changes: 5 additions & 2 deletions drivers/isdn/pcbit/edss1.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ struct fsm_timer_entry {
unsigned long timeout; /* in seconds */
};

extern char * isdn_state_table[];

void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *,
unsigned short event, struct callb_data *);
char * strisdnevent(ushort ev);

extern void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *,
unsigned short event, struct callb_data *);
#endif


Expand Down
16 changes: 0 additions & 16 deletions drivers/isdn/pcbit/layer2.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,6 @@
#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
*/
Expand Down
3 changes: 0 additions & 3 deletions drivers/isdn/pcbit/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ module_param_array(irq, int, NULL, 0);
static int num_boards;
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)
{
int board;
Expand Down
8 changes: 7 additions & 1 deletion drivers/isdn/pcbit/pcbit.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ struct pcbit_ioctl {
#define L2_RUNNING 5
#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

0 comments on commit 010046d

Please sign in to comment.