* 2.5.2-pre3 -- parport_cs.c:327: In function `parport_config': `LP_MAJOR' undeclared (first use in this function)
@ 2002-01-23 7:39 Miles Lane
2002-01-23 7:50 ` Evgeniy Polyakov
2002-02-11 3:18 ` [PATCH] " Miles Lane
0 siblings, 2 replies; 3+ messages in thread
From: Miles Lane @ 2002-01-23 7:39 UTC (permalink / raw)
To: LKML
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o parport_cs.o parport_cs.c
parport_cs.c: In function `parport_config':
parport_cs.c:327: `LP_MAJOR' undeclared (first use in this function)
parport_cs.c:327: (Each undeclared identifier is reported only once
parport_cs.c:327: for each function it appears in.)
parport_cs.c: At top level:
parport_cs.c:109: warning: `parport_cs_ops' defined but not used
make[2]: *** [parport_cs.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/parport'
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.5.2-pre3 -- parport_cs.c:327: In function `parport_config': `LP_MAJOR' undeclared (first use in this function)
2002-01-23 7:39 2.5.2-pre3 -- parport_cs.c:327: In function `parport_config': `LP_MAJOR' undeclared (first use in this function) Miles Lane
@ 2002-01-23 7:50 ` Evgeniy Polyakov
2002-02-11 3:18 ` [PATCH] " Miles Lane
1 sibling, 0 replies; 3+ messages in thread
From: Evgeniy Polyakov @ 2002-01-23 7:50 UTC (permalink / raw)
To: Miles Lane; +Cc: linux-kernel
On 22 Jan 2002 23:39:12 -0800
Miles Lane <miles@megapathdsl.net> wrote:
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o
> parport_cs.o parport_cs.c parport_cs.c: In function `parport_config':
> parport_cs.c:327: `LP_MAJOR' undeclared (first use in this function)
> parport_cs.c:327: (Each undeclared identifier is reported only once
> parport_cs.c:327: for each function it appears in.)
> parport_cs.c: At top level:
> parport_cs.c:109: warning: `parport_cs_ops' defined but not used
> make[2]: *** [parport_cs.o] Error 1
> make[2]: Leaving directory `/usr/src/linux/drivers/parport'
Try this patch, but it is given WITHOUT ANY WARRANTY.
I even cann't test to compile it.
And there is not ieee card here.
So, it was wrote with luck and common sense.
I hope it will help you.
--- ./drivers/parport/parport_cs.c~ Sun Sep 30 23:26:08 2001
+++ ./drivers/parport/parport_cs.c Wed Jan 23 10:49:30 2002
@@ -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.
+ */
/*====================================================================*/
Evgeniy Polyakov ( s0mbre ).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Re: 2.5.2-pre3 -- parport_cs.c:327: In function `parport_config': `LP_MAJOR' undeclared (first use in this function)
2002-01-23 7:39 2.5.2-pre3 -- parport_cs.c:327: In function `parport_config': `LP_MAJOR' undeclared (first use in this function) Miles Lane
2002-01-23 7:50 ` Evgeniy Polyakov
@ 2002-02-11 3:18 ` Miles Lane
1 sibling, 0 replies; 3+ messages in thread
From: Miles Lane @ 2002-02-11 3:18 UTC (permalink / raw)
To: LKML, Dave Jones; +Cc: johnpol
David,
This problem is still there is 2.5.4-pre6.
Can you accept this patch into your tree
and, if it looks right to you, attempt to
get the patch accepted into the "trivial and
obviously correct tiny patches" tree, if there
is one, yet? Patch is by Evgeniy Polyakov.
Miles
On Tue, 2002-01-22 at 23:50, Evgeniy Polyakov wrote:
> On 22 Jan 2002 23:39:12 -0800
> Miles Lane <miles@megapathdsl.net> wrote:
>
> > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> > -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -c -o
> > parport_cs.o parport_cs.c parport_cs.c: In function `parport_config':
> > parport_cs.c:327: `LP_MAJOR' undeclared (first use in this function)
> > parport_cs.c:327: (Each undeclared identifier is reported only once
> > parport_cs.c:327: for each function it appears in.)
> > parport_cs.c: At top level:
> > parport_cs.c:109: warning: `parport_cs_ops' defined but not used
> > make[2]: *** [parport_cs.o] Error 1
> > make[2]: Leaving directory `/usr/src/linux/drivers/parport'
>
> Try this patch, but it is given WITHOUT ANY WARRANTY.
> I even cann't test to compile it.
> And there is not ieee card here.
> So, it was wrote with luck and common sense.
> I hope it will help you.
>
--- ./drivers/parport/parport_cs.c~ Sun Sep 30 23:26:08 2001
+++ ./drivers/parport/parport_cs.c Wed Jan 23 10:49:30 2002
@@ -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.
+ */
/*====================================================================*/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-11 3:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-23 7:39 2.5.2-pre3 -- parport_cs.c:327: In function `parport_config': `LP_MAJOR' undeclared (first use in this function) Miles Lane
2002-01-23 7:50 ` Evgeniy Polyakov
2002-02-11 3:18 ` [PATCH] " Miles Lane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®