Re: Linux 2.4.20-pre6

From: Adrian Bunk (bunk@fs.tum.de)
Date: Tue Sep 10 2002 - 17:40:59 EST


On Tue, 10 Sep 2002, Marcelo Tosatti wrote:

>...
> Alan Cox <alan@lxorguk.ukuu.org.uk>:
>...
> o more irda __FUNCTION__ stuff
>...

This adds the use of TIOCM_MODEM_BITS to irtty.c but not the corresponding
addition of it to asm-i386/termios.h:

<-- snip -->

...
gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.19-full/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc
-iwithprefix include -DKBUILD_BASENAME=irtty -c -o irtty.o irtty.c
irtty.c: In function `irtty_set_dtr_rts':
irtty.c:761: `TIOCM_MODEM_BITS' undeclared (first use in this function)
irtty.c:761: (Each undeclared identifier is reported only once
irtty.c:761: for each function it appears in.)
make[4]: *** [irtty.o] Error 1
make[4]: Leaving directory `/home/bunk/linux/kernel-2.4/linux-2.4.19-full/drivers/net/irda'

<-- snip -->

The following part of -ac is also needed:

--- linux.20pre5/include/asm-i386/termios.h 2002-08-29 18:39:31.000000000 +0100
+++ linux.20pre5-ac4/include/asm-i386/termios.h 2002-08-06 15:41:52.000000000 +0100
@@ -37,6 +37,8 @@
 #define TIOCM_OUT2 0x4000
 #define TIOCM_LOOP 0x8000

+#define TIOCM_MODEM_BITS TIOCM_OUT2 /* IRDA support */
+
 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */

 /* line disciplines */

cu
Adrian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 15 2002 - 22:00:23 EST