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

Neil Brown (neilb@cse.unsw.edu.au)
Wed, 27 Feb 2002 08:50:11 +1100 (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/