linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Dietsche <olaf.dietsche--list.linux-kernel@exmail.de>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: nfs-devel@linux.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.5: compile error in fs/filesystems.c
Date: Fri, 01 Mar 2002 00:49:15 +0100	[thread overview]
Message-ID: <87vgchi2v8.fsf@tigram.bogus.local> (raw)

Hi Neil,

here is a patch to fix fs/filesystems.c, if you configure neither NFSD
nor NFSD_MODULE, but CONFIG_MODULES.

Regards, Olaf.

--- v2.5.5/fs/filesystems.c	Thu Feb 28 22:41:18 2002
+++ linux/fs/filesystems.c	Fri Mar  1 00:16:29 2002
@@ -15,14 +15,17 @@
 #include <linux/linkage.h>
 
 #if ! defined(CONFIG_NFSD)
+#if defined(CONFIG_NFSD_MODULES)
 struct nfsd_linkage *nfsd_linkage;
+EXPORT_SYMBOL(nfsd_linkage);
+#endif
 
 long
 asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
 {
 	int ret = -ENOSYS;
 	
-#if defined(CONFIG_MODULES)
+#if defined(CONFIG_NFSD_MODULES)
 	lock_kernel();
 
 	if (nfsd_linkage ||
@@ -36,6 +39,5 @@
 #endif
 	return ret;
 }
-EXPORT_SYMBOL(nfsd_linkage);
 
 #endif /* CONFIG_NFSD */

             reply	other threads:[~2002-02-28 23:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-28 23:49 Olaf Dietsche [this message]
2002-02-28 23:57 ` [PATCH] 2.5.5: compile error in fs/filesystems.c Neil Brown
2002-03-01  0:58   ` Olaf Dietsche
2002-03-01  1:07     ` Neil Brown
2002-03-01  7:48       ` Olaf Dietsche

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=87vgchi2v8.fsf@tigram.bogus.local \
    --to=olaf.dietsche--list.linux-kernel@exmail.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    --cc=nfs-devel@linux.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).