Skip to contentSkip to conversation

little bug in drivers/parport/ieee1284_ops.c

DISCUSSION Kees Lemmens 1 participant 1 message Oct 22, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Think I found a bug in linux-2.4.12 in the module ieee1284_ops It fails to compile the modules :

gcc -D__KERNEL__ -I/usr/src/linux-2.4.12/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -c -o
ieee1284_ops.o ieee1284_ops.c
ieee1284_ops.c: In function `ecp_forward_to_reverse':
ieee1284_ops.c:365: `IEEE1284_PH_DIR_UNKNOWN' undeclared (first use in this function)
ieee1284_ops.c:365: (Each undeclared identifier is reported only once ieee1284_ops.c:365: for each function it appears in.) ieee1284_ops.c: In function `ecp_reverse_to_forward':
ieee1284_ops.c:397: `IEEE1284_PH_DIR_UNKNOWN' undeclared (first use in this function)
make[2]: *** [ieee1284_ops.o] Error 1

I checked include/linux/parport.h and decided that it probably had to be EEE1284_PH_ECP_DIR_UNKNOWN.

After this modification everything compiles fine.

Signature · 12 lines
groeten,
Kees Lemmens.

-----------------------------------------------------------------------
 Department of Applied Mathematical Analysis, Faculty of Information
 Technology and Systems, Delft University of Technology,

 Address 	: PO Box 5031, NL-2600 GA, Delft, The Netherlands.
 Phone work/home: (+31) 015-2787224/010-4740254, Fax : 015-2787209
 Email     	: [email protected].
 WWW       	: http://ta.twi.tudelft.nl/DV/Staff/C.W.J.Lemmens.html
-----------------------------------------------------------------------