lkml.org 
[lkml]   [2003]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] fix net/sk98lin/skge.c for !PROC_FS
I got the following compile error compiling 2.6.0-test2-mm5 with 
!CONFIG_PROC_FS:

<-- snip -->

...
CC drivers/net/sk98lin/skge.o
...
drivers/net/sk98lin/skge.c:730: error: `proc_net' undeclared (first use
in this function)
drivers/net/sk98lin/skge.c:730: error: (Each undeclared identifier is
reported only once
drivers/net/sk98lin/skge.c:730: error: for each function it appears in.)
make[3]: *** [drivers/net/sk98lin/skge.o] Error 1

<-- snip -->

The following patch fixes it:

--- linux-2.6.0-test2-mm5/drivers/net/sk98lin/skge.c.old 2003-08-08 20:24:50.000000000 +0200
+++ linux-2.6.0-test2-mm5/drivers/net/sk98lin/skge.c 2003-08-08 20:25:22.000000000 +0200
@@ -724,6 +724,7 @@
SK_MEMCPY(&SK_Root_Dir_entry, BootString,
sizeof(SK_Root_Dir_entry) - 1);

+#ifdef CONFIG_PROC_FS
/*Create proc (directory)*/
if(!proc_root_initialized) {
pSkRootDir = create_proc_entry(SK_Root_Dir_entry,
@@ -731,6 +732,7 @@
pSkRootDir->owner = THIS_MODULE;
proc_root_initialized = 1;
}
+#endif /* CONFIG_PROC_FS */

}


Please apply
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@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 13:47    [W:0.021 / U:2.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site