Re: [2.5.5 ERROR] Can't compile without NFS

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Tue Feb 26 2002 - 16:50:11 EST


On Tuesday February 26, jt@bougret.hpl.hp.com wrote:
> make[2]: Entering directory `/usr/src/kernel-source-2.5/fs'
> gcc -D__KERNEL__ -I/usr/src/kernel-source-2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=filesystems -DEXPORT_SYMTAB -c filesystems.c
> filesystems.c: In function `sys_nfsservctl':
> filesystems.c:30: dereferencing pointer to incomplete type
> filesystems.c:30: dereferencing pointer to incomplete type
> filesystems.c:30: warning: value computed is not used
....

Yeh... sorry 'bout that.

Patch sent to Linus, but didn't make it into 2.5.6-pre1.

--- ./include/linux/nfsd/interface.h 2002/02/20 21:58:11 1.1
+++ ./include/linux/nfsd/interface.h 2002/02/20 23:35:19 1.2
@@ -12,13 +12,15 @@
 
 #include <linux/config.h>
 
-#ifdef CONFIG_NFSD_MODULE
+#ifndef CONFIG_NFSD
+#ifdef CONFIG_MODULES
 
 extern struct nfsd_linkage {
         long (*do_nfsservctl)(int cmd, void *argp, void *resp);
         struct module *owner;
 } * nfsd_linkage;
 
+#endif
 #endif
 
 #endif /* LINUX_NFSD_INTERFACE_H */
-
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:33 EST