[PATCH] drivers/isdn/pcbit/: proper prototypes
authorAdrian Bunk <bunk@stusta.de>
Mon, 12 Feb 2007 08:53:16 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:34 +0000 (09:48 -0800)
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>
drivers/isdn/pcbit/drv.c
drivers/isdn/pcbit/edss1.c
drivers/isdn/pcbit/edss1.h
drivers/isdn/pcbit/layer2.c
drivers/isdn/pcbit/module.c
drivers/isdn/pcbit/pcbit.h

index 11c1b0b6e390c1e6f0fd919eb5f4a06706cd2c79..386c5ce648444138965a21ba991446d5021f806e 100644 (file)
@@ -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)
 {
index 93ca7de5670b1776cf6f0d5cf833db6dab05b320..1ad8b07efd8ba3ab773d501d20eaa5a9e066f0cc 100644 (file)
 #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",
index 6bb587005b8628c57ac7972fea078d137afa022d..0b64f97015d856e157af4fccb9885e8bf3a184a2 100644 (file)
@@ -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
 
 
index eafcce5e656a7a796bba72c222ea33ab3ba413ad..58eee50c8e263debb3a2848e71f778bb09f8ef86 100644 (file)
 #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
  */
index 282073a35d6a41f9f7948e32060e3c2cdaf3983d..7b7b1777f09b88f29d2422ffc5517352f7fa32a0 100644 (file)
@@ -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;
index 19c18e88ff160be7c315c6c43f32dafbd62cdb79..d76fffc88b8229fcb2e9e4529961cf261e90daa4 100644 (file)
@@ -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