Re: 2.6.1-rc1-mm2: warning in drivers/net/sk98lin/skge.c

From: Adrian Bunk
Date: Sun Feb 08 2004 - 08:15:09 EST


On Tue, Jan 06, 2004 at 10:20:09AM -0800, Andrew Morton wrote:
> Adrian Bunk <bunk@xxxxxxxxx> wrote:
> >
> > drivers/net/sk98lin/skge.c: In function `skge_probe':
> > drivers/net/sk98lin/skge.c:713: warning: unused variable `proc_root_initialized'
>
> hm, I thought I sent Jeff a fix for that.
>
> Yes, the definition should just be deleted.

This warning is still present in 2.6.2-mm1 and 2.6.3-rc1.

Please apply the following patch:

--- linux-2.6.2-mm1/drivers/net/sk98lin/skge.c.old 2004-02-08 14:11:48.000000000 +0100
+++ linux-2.6.2-mm1/drivers/net/sk98lin/skge.c 2004-02-08 14:11:57.000000000 +0100
@@ -294,7 +294,6 @@
SK_BOOL BootStringCount = SK_FALSE;
int retval;
#ifdef CONFIG_PROC_FS
- int proc_root_initialized = 0;
struct proc_dir_entry *pProcFile;
#endif



cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/