[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.6.1-mm3



Hi,

the patch "serial-03-fixups.patch" introduced following compile error:

  CC [M]  drivers/char/moxa.o
drivers/char/moxa.c: In function `moxa_tiocmget':
drivers/char/moxa.c:754: error: `port' undeclared (first use in this function)
drivers/char/moxa.c:754: error: (Each undeclared identifier is reported only 
once
drivers/char/moxa.c:754: error: for each function it appears in.)
drivers/char/moxa.c: In function `moxa_tiocmset':
drivers/char/moxa.c:779: error: `port' undeclared (first use in this function)

The attached patch fixes it...

  Thomas Schlichter
--- linux-2.6.1-mm3/drivers/char/moxa.c.orig	2004-01-14 19:04:43.663556456 +0100
+++ linux-2.6.1-mm3/drivers/char/moxa.c	2004-01-14 19:18:54.179258416 +0100
@@ -749,6 +749,7 @@
 static int moxa_tiocmget(struct tty_struct *tty, struct file *file)
 {
 	struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
+	register int port;
 	int flag = 0, dtr, rts;
 
 	port = PORTNO(tty);
@@ -774,6 +775,7 @@
 			 unsigned int set, unsigned int clear)
 {
 	struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
+	register int port;
 	int flag = 0, dtr, rts;
 
 	port = PORTNO(tty);

signature