Hi.
When I compile drivers/net/irda/w83977.c in-kernel in kernel version
2.4.0-test5-pre4 I get the following:
w83977af_ir.c:277: warning: `w83977af_close' defined but not used
The following patch fixes this by places 'ifdef MODULE' appropriately
(I hope :) ).
--- drivers/net/irda/w83977af_ir.c.org Wed Jul 26 22:51:21 2000
+++ drivers/net/irda/w83977af_ir.c.new Wed Jul 26 22:52:55 2000
@@ -90,7 +90,9 @@
/* Some prototypes */
static int w83977af_open(int i, unsigned int iobase, unsigned int irq,
unsigned int dma);
+#ifdef MODULE
static int w83977af_close(struct w83977af_ir *self);
+#endif /*MODULE*/
static int w83977af_probe(int iobase, int irq, int dma);
static int w83977af_dma_receive(struct w83977af_ir *self);
static int w83977af_dma_receive_complete(struct w83977af_ir *self);
@@ -273,6 +275,7 @@
* Close driver instance
*
*/
+#ifdef MODULE
static int w83977af_close(struct w83977af_ir *self)
{
int iobase;
@@ -315,6 +318,7 @@
return 0;
}
+#endif /*MODULE*/
int w83977af_probe( int iobase, int irq, int dma)
{
Furthermore the following warning is emitted from toshoboe.c:
toshoboe.c: In function `toshoboe_wakeup':
toshoboe.c:903: warning: unused variable `dev'
The following patch removes the unused variable 'dev':
--- drivers/net/irda/toshoboe.c.org Wed Jul 26 22:54:42 2000
+++ drivers/net/irda/toshoboe.c.new Wed Jul 26 22:55:21 2000
@@ -900,7 +900,6 @@
static void
toshoboe_wakeup (struct toshoboe_cb *self)
{
- struct net_device *dev = self->netdev;
unsigned long flags;
if (!self->stopped)
Regards,
Rasmus([EMAIL PROTECTED])
"It's like an Alcatraz around my neck."
-Boston mayor Menino on the shortage of city parking spaces
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda