From: Adrian Bunk <bunk@fs.tum.de>
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
Date: Fri, 8 Aug 2003 22:18:23 +0200 [thread overview]
Message-ID: <20030808201823.GE16091@fs.tum.de> (raw)
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
next reply other threads:[~2003-08-08 20:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-08 20:18 Adrian Bunk [this message]
2003-08-11 6:47 ` support
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030808201823.GE16091@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=linux@syskonnect.de \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®