lkml.org 
[lkml]   [2002]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: 2.5.5 -- filesystems.c:30: In function `sys_nfsservctl': dereferencing pointer to incomplete type
On  February 20, miles@megapathdsl.net wrote:
> This has been reported by someone else, but the .config
> information was not included in the report. Hopefully,
> this will help.
>
> Here you go:
....

> 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
> filesystems.c:30: dereferencing pointer to incomplete type
...

Opps, my mistake.

Please try this.

NeilBrown



--- ./include/linux/nfsd/interface.h 2002/02/18 22:58:10 1.3
+++ ./include/linux/nfsd/interface.h 2002/02/20 20:25:55
@@ -138,7 +138,8 @@



-#ifdef CONFIG_NFSD_MODULE
+#ifndef CONFIG_NFSD
+#ifdef CONFIG_MODULE

extern struct nfsd_linkage {
long (*do_nfsservctl)(int cmd, void *argp, void *resp);
@@ -155,13 +156,11 @@
# define nfsd_find_fh_dentry (nfsd_linkage->find_fh_dentry)

#else
-# ifndef CONFIG_NFSD
# define nfsd_find_fh_dentry(a,b,c,d,e) *((char*)0)=0
/* filesystems can use "#ifndef NO_CONFIG_NFSD" to exclude code that is only needed
* by knfsd
*/
# define NO_CONFIG_NFSD
-# 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/
\
 
 \ /
  Last update: 2005-03-22 13:24    [from the cache]
©2003-2011 Jasper Spaans