Commit b19a8f04 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

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

- add functions prototypes for some global functions to header files

- remove unneeded "extern"s from some function prototypes

You might note that this patch results in a new warning - that's due to the
fact that with a proper prototype gcc is able to discover a broken
work_struct conversion.
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 010046d0
...@@ -431,7 +431,6 @@ isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf) ...@@ -431,7 +431,6 @@ isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf)
return(ret); return(ret);
} }
extern void BChannel_bh(struct BCState *);
#define B_LL_NOCARRIER 8 #define B_LL_NOCARRIER 8
#define B_LL_CONNECT 9 #define B_LL_CONNECT 9
#define B_LL_OK 10 #define B_LL_OK 10
......
...@@ -21,12 +21,11 @@ ...@@ -21,12 +21,11 @@
#define B_XMTBUFREADY 1 #define B_XMTBUFREADY 1
#define B_ACKPENDING 2 #define B_ACKPENDING 2
extern void debugl1(struct IsdnCardState *cs, char *fmt, ...); void debugl1(struct IsdnCardState *cs, char *fmt, ...);
extern void DChannel_proc_xmt(struct IsdnCardState *cs); void DChannel_proc_xmt(struct IsdnCardState *cs);
extern void DChannel_proc_rcv(struct IsdnCardState *cs); void DChannel_proc_rcv(struct IsdnCardState *cs);
extern void l1_msg(struct IsdnCardState *cs, int pr, void *arg); void l1_msg(struct IsdnCardState *cs, int pr, void *arg);
extern void l1_msg_b(struct PStack *st, int pr, void *arg); void l1_msg_b(struct PStack *st, int pr, void *arg);
void Logl2Frame(struct IsdnCardState *cs, struct sk_buff *skb, char *buf,
#ifdef L2FRAME_DEBUG int dir);
extern void Logl2Frame(struct IsdnCardState *cs, struct sk_buff *skb, char *buf, int dir); void BChannel_bh(struct work_struct *work);
#endif
...@@ -231,18 +231,6 @@ no_l3_proto_spec(struct PStack *st, isdn_ctrl *ic) ...@@ -231,18 +231,6 @@ no_l3_proto_spec(struct PStack *st, isdn_ctrl *ic)
return(-1); return(-1);
} }
#ifdef CONFIG_HISAX_EURO
extern void setstack_dss1(struct PStack *st);
#endif
#ifdef CONFIG_HISAX_NI1
extern void setstack_ni1(struct PStack *st);
#endif
#ifdef CONFIG_HISAX_1TR6
extern void setstack_1tr6(struct PStack *st);
#endif
struct l3_process struct l3_process
*getl3proc(struct PStack *st, int cr) *getl3proc(struct PStack *st, int cr)
{ {
......
...@@ -25,13 +25,19 @@ struct stateentry { ...@@ -25,13 +25,19 @@ struct stateentry {
#define l3_debug(st, fmt, args...) HiSax_putstatus(st->l1.hardware, "l3 ", fmt, ## args) #define l3_debug(st, fmt, args...) HiSax_putstatus(st->l1.hardware, "l3 ", fmt, ## args)
extern void newl3state(struct l3_process *pc, int state); struct PStack;
extern void L3InitTimer(struct l3_process *pc, struct L3Timer *t);
extern void L3DelTimer(struct L3Timer *t); void newl3state(struct l3_process *pc, int state);
extern int L3AddTimer(struct L3Timer *t, int millisec, int event); void L3InitTimer(struct l3_process *pc, struct L3Timer *t);
extern void StopAllL3Timer(struct l3_process *pc); void L3DelTimer(struct L3Timer *t);
extern struct sk_buff *l3_alloc_skb(int len); int L3AddTimer(struct L3Timer *t, int millisec, int event);
extern struct l3_process *new_l3_process(struct PStack *st, int cr); void StopAllL3Timer(struct l3_process *pc);
extern void release_l3_process(struct l3_process *p); struct sk_buff *l3_alloc_skb(int len);
extern struct l3_process *getl3proc(struct PStack *st, int cr); struct l3_process *new_l3_process(struct PStack *st, int cr);
extern void l3_msg(struct PStack *st, int pr, void *arg); void release_l3_process(struct l3_process *p);
struct l3_process *getl3proc(struct PStack *st, int cr);
void l3_msg(struct PStack *st, int pr, void *arg);
void setstack_dss1(struct PStack *st);
void setstack_ni1(struct PStack *st);
void setstack_1tr6(struct PStack *st);
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