lkml.org 
[lkml]   [2004]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.3-mm2
Hi!

I got the following compile error
drivers/parport/parport_pc.c: In function `parport_pc_unregister_port':
drivers/parport/parport_pc.c:2337: error: `priv' undeclared (first use
in this function)
drivers/parport/parport_pc.c:2337: error: (Each undeclared identifier is
reported only once
drivers/parport/parport_pc.c:2337: error: for each function it appears in.)
make[2]: *** [drivers/parport/parport_pc.o] Error 1
make[1]: *** [drivers/parport] Error 2
make: *** [drivers] Error 2

I add "#ifdef CONFIG_PARPORT_PC_FIFO" and "#endif"

diff -aur linux-mm/drivers/parport/parport_pc.c
linux-mm-new/drivers/parport/parport_pc.c
--- linux-mm/drivers/parport/parport_pc.c 2004-02-20
20:40:13.000000000 +0900
+++ linux-mm-new/drivers/parport/parport_pc.c 2004-02-20
21:15:10.434866156 +0900
@@ -2333,9 +2333,13 @@
#endif /* CONFIG_PARPORT_PC_FIFO */
struct parport_operations *ops = p->ops;
parport_remove_port(p);
+
+#ifdef CONFIG_PARPORT_PC_FIFO
spin_lock(&ports_lock);
list_del_init(&priv->list);
spin_unlock(&ports_lock);
+#endif /* CONFIG_PARPORT_PC_FIFO */
+
if (p->dma != PARPORT_DMA_NONE)
free_dma(p->dma);
if (p->irq != PARPORT_IRQ_NONE)

--
/*
* masami ichikawa
* mailto:hangar-18@mub.biglobe.ne.jp
*/
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.064 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site