Re: 2.5.5 -- filesystems.c:30: In function `sys_nfsservctl': dereferencing pointer to incomplete type

From: Steven Cole (elenstev@mesatop.com)
Date: Wed Feb 20 2002 - 14:59:18 EST


On Wednesday 20 February 2002 11:13 am, Miles Lane wrote:
> This has been reported by someone else, but the .config
> information was not included in the report. Hopefully,
> this will help.

[Config info snipped]

>
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon
> -DKBUILD_BASENAME=filesystems -DEXPORT_SYMTAB -c filesystems.c
> filesystems.c: In function `sys_nfsservctl':
> filesystems.c:30: dereferencing pointer to incomplete type

You could try this small patch. The 2.5.5-pre1 version of filesystems.c
used #if defined (CONFIG_NFSD_MODULE) around most of this code,
so perhaps this will be correct.

Steven

--- linux-2.5.5/fs/filesystems.c.orig Wed Feb 20 07:52:36 2002
+++ linux-2.5.5/fs/filesystems.c Wed Feb 20 12:35:42 2002
@@ -22,7 +22,7 @@
 {
         int ret = -ENOSYS;
         
-#if defined(CONFIG_MODULES)
+#if defined(CONFIG_NFSD_MODULE)
         lock_kernel();
 
         if (nfsd_linkage ||

-
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:27 EST