mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] fix net/sk98lin/skge.c for !PROC_FS
@ 2003-08-08 20:18 Adrian Bunk
  2003-08-11  6:47 ` support
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2003-08-08 20:18 UTC (permalink / raw)
  To: linux; +Cc: linux-net, linux-kernel, trivial

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [2.6 patch] fix net/sk98lin/skge.c for !PROC_FS
  2003-08-08 20:18 [2.6 patch] fix net/sk98lin/skge.c for !PROC_FS Adrian Bunk
@ 2003-08-11  6:47 ` support
  0 siblings, 0 replies; 2+ messages in thread
From: support @ 2003-08-11  6:47 UTC (permalink / raw)
  To: 'Adrian Bunk'; +Cc: linux-net, linux-kernel, trivial, linux

Hello Adrian,

Thank you very much for your interest in SysKonnect products.

We will consider your suggestion during the next release.

Thank you again for your cooperation.

Best regards
Karim

SysKonnect GmbH
A Marvell®Company
-------------------------------------
Karim Jamal
Technical Support Engineer
--------------------------------------
Phone: +49 (0) 7243502-330
Fax: +49 (0) 7243502-364
Mail: support@syskonnect.de
Web: http:\\www.syskonnect.de




-----Original Message-----
From: Adrian Bunk [mailto:bunk@fs.tum.de]
Sent: Friday, August 08, 2003 10:18 PM
To: linux@syskonnect.de
Cc: linux-net@vger.kernel.org; linux-kernel@vger.kernel.org;
trivial@rustcorp.com.au
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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-11  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-08 20:18 [2.6 patch] fix net/sk98lin/skge.c for !PROC_FS Adrian Bunk
2003-08-11  6:47 ` support

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®