[PATCH] 2.5.5: compile error in fs/filesystems.c

From: Olaf Dietsche (olaf.dietsche--list.linux-kernel@exmail.de)
Date: Thu Feb 28 2002 - 18:49:15 EST


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 */
-
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/



This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:46 EST