2.5.5 -- filesystems.c:30: In function `sys_nfsservctl': dereferencing pointer to incomplete type
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=yCONFIG_AUTOFS4_FS=yCONFIG_EXT3_FS=yCONFIG_JBD=yCONFIG_JBD_DEBUG=yCONFIG_FAT_FS=mCONFIG_VFAT_FS=mCONFIG_RAMFS=yCONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_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'
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 ||