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

Re: 2.6.1-mm3



Hi,

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

  CC [M]  drivers/char/sx.o
drivers/char/sx.c: In function `sx_tiocmset':
drivers/char/sx.c:1761: error: `dtr' undeclared (first use in this function)
drivers/char/sx.c:1761: error: (Each undeclared identifier is reported only 
once
drivers/char/sx.c:1761: error: for each function it appears in.)
drivers/char/sx.c:1756: Warnung: unused variable `cts'

The attached patch fixes it...

   Thomas Schlichter
--- linux-2.6.1-mm3/drivers/char/sx.c.orig	2004-01-14 19:33:13.367641928 +0100
+++ linux-2.6.1-mm3/drivers/char/sx.c	2004-01-14 19:35:06.915380048 +0100
@@ -1753,7 +1753,7 @@
 		       unsigned int set, unsigned int clear)
 {
 	struct sx_port *port = tty->driver_data;
-	int rts = -1, cts = -1;
+	int rts = -1, dtr = -1;
 
 	if (set & TIOCM_RTS)
 		rts = 1;

signature