Skip to contentSkip to conversation

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

DISCUSSION Miles Lane 2 participants 2 messages Feb 20, 2002 VFS

lore
Share & tools
lore

Miles Lane

author
#0 lore raw

This has been reported by someone else, but the .config information was not included in the report. Hopefully, this will help.

Here you go:

CONFIG_QUOTA=y
CONFIG_AUTOFS4_FS=y
CONFIG_EXT3_FS=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m
CONFIG_RAMFS=y
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y

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 filesystems.c:30: warning: value computed is not used filesystems.c:32: dereferencing pointer to incomplete type filesystems.c:33: dereferencing pointer to incomplete type filesystems.c:33: dereferencing pointer to incomplete type filesystems.c:33: warning: value computed is not used make[2]: *** [filesystems.o] Error 1
make[2]: Leaving directory `/usr/src/linux/fs'

#1 lore raw
Quoted 3 lines · Miles Lane

This has been reported by someone else, but the .config information was not included in the report. Hopefully, this will help.

[Config info snipped]

Quoted 7 lines

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes

(quoted diff) +0 -3
-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

fs/filesystems.c renamed from fs/filesystems.c.orig +1 -1
@@ -22,7 +22,7 @@
 {
 	int ret = -ENOSYS;
 	
-#if defined(CONFIG_MODULES)
+#if defined(CONFIG_NFSD_MODULE)
 	lock_kernel();
 
 	if (nfsd_linkage ||