Skip to contentSkip to conversation

-- Needed since at least 2.5.2-pre8 -- Compile error in parport_cs.c: 327: `LP_MAJOR' undeclared

PATCH New Miles Lane 1 participant 1 message Mar 1, 2002 Parallel port

lore
Share & tools
lore

Miles Lane

author
#0 lore raw

PATCH 1/1 -- Needed since at least 2.5.2-pre8 -- Compile error in parport_cs.c: 327: `LP_MAJOR' undeclared

As you can see, this problem has been known for a while:

Quoted 3 lines
Subject:  2.5.2-pre8 -- Compile error in parport_cs.c: 327: `LP_MAJOR'
From:     Miles Lane <[email protected]>
Date:     2002-01-05 8:29:55

parport_cs.c: In function `parport_config':
parport_cs.c:327: `LP_MAJOR' undeclared (first use in this function) make[2]: *** [parport_cs.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/parport'

This patch is from Evgeniy Polyakov <[email protected]>. Please apply, unless the parallel port maintainers spot a problem.

drivers/parport/parport_cs.c Wed Jan 23 10:49:30 2002 renamed from drivers/parport/parport_cs.c~ Sun Sep 30 23:26:08 2001 +4 -1
@@ -45,6 +45,7 @@
 #include <linux/string.h>
 #include <linux/timer.h>
 #include <linux/ioport.h>
+#include <linux/major.h>
 
 #include <linux/parport.h>
 #include <linux/parport_pc.h>
@@ -106,7 +107,9 @@
 static dev_link_t *dev_list = NULL;
 
 extern struct parport_operations parport_pc_ops;
-static struct parport_operations parport_cs_ops;
+/*static struct parport_operations parport_cs_ops;
+ * To make compiler happy.
+ */
 
 /*====================================================================*/