[PATCH] fs/filesystems.c compile failure in 2.5.x

From: Michel Eyckmans (MCE) (mce@pi.be)
Date: Fri Feb 22 2002 - 19:52:11 EST


In 2.5.x, fs/filesystems.c does not compile if nfsd is not
compiled in and CONFIG_MODULES is defined. The attached
patch fixes it.

MCE

=====================================================================
--- include/linux/nfsd/interface.h.old Thu Feb 21 01:26:04 2002
+++ include/linux/nfsd/interface.h Sat Feb 23 01:46:14 2002
@@ -12,12 +12,14 @@
 
 #include <linux/config.h>
 
-#ifdef CONFIG_NFSD_MODULE
-
-extern struct nfsd_linkage {
+struct nfsd_linkage {
         long (*do_nfsservctl)(int cmd, void *argp, void *resp);
         struct module *owner;
-} * nfsd_linkage;
+};
+
+#ifdef CONFIG_NFSD_MODULE
+
+extern struct nfsd_linkage * nfsd_linkage;
 
 #endif
 

-- 
========================================================================
M. Eyckmans (MCE)          Code of the Geeks v3.1       mce-at-pi-dot-be
GCS d+ s+:- a36 C+++$ UHLUASO+++$ P+ L+++ E--- W++ N+++ !o K w--- !O M--
 V-- PS+ PE+ Y+ PGP- t--- !5 !X R- tv- b+ DI++ D-- G++ e+++ h+(*) !r y?
========================================================================

-- ======================================================================== M. Eyckmans (MCE) Code of the Geeks v3.1 mce-at-pi-dot-be GCS d+ s+:- a36 C+++$ UHLUASO+++$ P+ L+++ E--- W++ N+++ !o K w--- !O M-- V-- PS+ PE+ Y+ PGP- t--- !5 !X R- tv- b+ DI++ D-- G++ e+++ h+(*) !r y? ========================================================================

- 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 : Sat Feb 23 2002 - 21:00:48 EST