提交 672b2714 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] fix ISTALLION=y

drivers/char/istallion.c: In function ‘stli_initbrds’:
drivers/char/istallion.c:4150: error: implicit declaration of function ‘stli_parsebrd’
drivers/char/istallion.c:4150: error: ‘stli_brdsp’ undeclared (first use in this function)
drivers/char/istallion.c:4150: error: (Each undeclared identifier is reported only once
drivers/char/istallion.c:4150: error: for each function it appears in.)
drivers/char/istallion.c:4164: error: implicit declaration of function ‘stli_argbrds’

While I was at it, I also removed the #ifdef MODULE around the initialation
code to allow it to perhaps work when built into the kernel and made a
needlessly global function static.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e09793bb
...@@ -282,7 +282,6 @@ static char *stli_brdnames[] = { ...@@ -282,7 +282,6 @@ static char *stli_brdnames[] = {
/*****************************************************************************/ /*****************************************************************************/
#ifdef MODULE
/* /*
* Define some string labels for arguments passed from the module * Define some string labels for arguments passed from the module
* load line. These allow for easy board definitions, and easy * load line. These allow for easy board definitions, and easy
...@@ -381,8 +380,6 @@ MODULE_PARM_DESC(board2, "Board 2 config -> name[,ioaddr[,memaddr]"); ...@@ -381,8 +380,6 @@ MODULE_PARM_DESC(board2, "Board 2 config -> name[,ioaddr[,memaddr]");
module_param_array(board3, charp, NULL, 0); module_param_array(board3, charp, NULL, 0);
MODULE_PARM_DESC(board3, "Board 3 config -> name[,ioaddr[,memaddr]"); MODULE_PARM_DESC(board3, "Board 3 config -> name[,ioaddr[,memaddr]");
#endif
/* /*
* Set up a default memory address table for EISA board probing. * Set up a default memory address table for EISA board probing.
* The default addresses are all bellow 1Mbyte, which has to be the * The default addresses are all bellow 1Mbyte, which has to be the
...@@ -643,14 +640,8 @@ static unsigned int stli_baudrates[] = { ...@@ -643,14 +640,8 @@ static unsigned int stli_baudrates[] = {
* Prototype all functions in this driver! * Prototype all functions in this driver!
*/ */
#ifdef MODULE
static void stli_argbrds(void);
static int stli_parsebrd(stlconf_t *confp, char **argp); static int stli_parsebrd(stlconf_t *confp, char **argp);
static int stli_init(void);
static unsigned long stli_atol(char *str);
#endif
int stli_init(void);
static int stli_open(struct tty_struct *tty, struct file *filp); static int stli_open(struct tty_struct *tty, struct file *filp);
static void stli_close(struct tty_struct *tty, struct file *filp); static void stli_close(struct tty_struct *tty, struct file *filp);
static int stli_write(struct tty_struct *tty, const unsigned char *buf, int count); static int stli_write(struct tty_struct *tty, const unsigned char *buf, int count);
...@@ -786,8 +777,6 @@ static int stli_timeron; ...@@ -786,8 +777,6 @@ static int stli_timeron;
static struct class *istallion_class; static struct class *istallion_class;
#ifdef MODULE
/* /*
* Loadable module initialization stuff. * Loadable module initialization stuff.
*/ */
...@@ -954,8 +943,6 @@ static int stli_parsebrd(stlconf_t *confp, char **argp) ...@@ -954,8 +943,6 @@ static int stli_parsebrd(stlconf_t *confp, char **argp)
return(1); return(1);
} }
#endif
/*****************************************************************************/ /*****************************************************************************/
static int stli_open(struct tty_struct *tty, struct file *filp) static int stli_open(struct tty_struct *tty, struct file *filp)
...@@ -4694,7 +4681,7 @@ static struct tty_operations stli_ops = { ...@@ -4694,7 +4681,7 @@ static struct tty_operations stli_ops = {
/*****************************************************************************/ /*****************************************************************************/
int __init stli_init(void) static int __init stli_init(void)
{ {
int i; int i;
printk(KERN_INFO "%s: version %s\n", stli_drvtitle, stli_drvversion); printk(KERN_INFO "%s: version %s\n", stli_drvtitle, stli_drvversion);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册