2001-03-09 03:38:58

by Ken Hill

[permalink] [raw]
Subject: compile errors on 2.4.2-ac16

serial.c: In function `wait_for_xmitr':
serial.c:5497: `ASYNC_NO_FLOW' undeclared (first use in this function)
serial.c:5497: (Each undeclared identifier is reported only once
serial.c:5497: for each function it appears in.)
serial.c: In function `serial_console_setup':
serial.c:5666: `ASYNC_NO_FLOW' undeclared (first use in this function)
make[3]: *** [serial.o] Error 1
make[3]: Leaving directory `/usr/src/linux/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_dir_drivers] Error 2

?:.?˛???m???ka??b???zwm??b????˛???m?b??????z_???^n?r???z???h?????&???z??z?ޗ?+??+zf???h???~????i?????????z_???j:+v???)ߣ?m?S?y??杶????i??????????i


2001-03-09 04:22:48

by Dave Jones

[permalink] [raw]
Subject: Re: compile errors on 2.4.2-ac16

On Thu, 8 Mar 2001, Ken Hill wrote:

> serial.c:5497: `ASYNC_NO_FLOW' undeclared (first use in this function)
> serial.c:5666: `ASYNC_NO_FLOW' undeclared (first use in this function)

On quick inspection, just looks like a renamed declaration.
Does this fix things ?

regards,

Dave.

diff -urN --exclude-from=/home/davej/.exclude linux/drivers/char/serial.c linux-dj/drivers/char/serial.c
--- linux/drivers/char/serial.c Fri Mar 9 03:59:02 2001
+++ linux-dj/drivers/char/serial.c Fri Mar 9 04:12:25 2001
@@ -5494,7 +5494,7 @@
if (--tmout == 0)
break;
} while((status & BOTH_EMPTY) != BOTH_EMPTY);
- if (info->flags & ASYNC_NO_FLOW)
+ if (info->flags & ASYNC_CONS_FLOW)
return;
tmout = 1000000;
while (--tmout && ((serial_in(info, UART_MSR) & UART_MSR_CTS) == 0));
@@ -5663,7 +5663,7 @@
*/
state = rs_table + co->index;
if (doflow == 0)
- state->flags |= ASYNC_NO_FLOW;
+ state->flags |= ASYNC_CONS_FLOW;
info = &async_sercons;
info->magic = SERIAL_MAGIC;
info->state = state;


--
| Dave Jones. http://www.suse.de/~davej
| SuSE Labs