[Yaffs] YAFFS compilation warnings
Aras Vaichas
arasv@magellan-technology.com
Tue, 07 Dec 2004 12:54:55 +1100
I'm in the middle of tracking down a bizarre single bit flipping error that
seems to be related to the name of the file that I am trying to create and I'd
like to make sure that my YAFFS is compiling correctly.
I get these warnings when I compile my kernel, can someone verify that these
are OK?
I'm using latest MTD, latest YAFFS and 2.4.27-vrs1.
make[3]: Entering directory
`/samba/development/40_Magellan_Standard_Software/MAL/kernel/linux-2.4.27-vrs1-yaffs/fs/yaffs'
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__
-I/samba/development/40_Magellan_Standard_Software/MAL/kernel/linux-2.4.27-vrs1-yaffs/include
-Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4
-mtune=arm9tdmi -mshort-load-bytes -msoft-float -Uarm
-DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_SHORT_NAMES_IN_RAM
-DCONFIG_YAFFS_USE_NANDECC -nostdinc -iwithprefix include
-DKBUILD_BASENAME=yaffs_guts -c -o yaffs_guts.o yaffs_guts.c
yaffs_guts.c: In function `yaffs_SoftDeleteWorker':
yaffs_guts.c:1141: warning: unused variable `chunkDeleted'
yaffs_guts.c:1140: warning: unused variable `found'
yaffs_guts.c:1139: warning: unused variable `tags'
yaffs_guts.c:1136: warning: unused variable `chunkInInode'
yaffs_guts.c: In function `yaffs_FlushFilesChunkCache':
yaffs_guts.c:3157: warning: unused variable `nBytes'
yaffs_guts.c:3153: warning: `lowest' might be used uninitialized in this function
yaffs_guts.c:3156: warning: `chunkWritten' might be used uninitialized in this
function
yaffs_guts.c: At top level:
yaffs_guts.c:1933: warning: `yaffs_CheckObjectHashSanity' defined but not used
yaffs_guts.c:454: warning: `yaffs_RewriteBufferedBlock' defined but not used
yaffs_guts.c:483: warning: `yaffs_CheckWrittenBlock' defined but not used
yaffs_guts.c:2380: warning: `yaffs_DoUnlinkedFileDeletion' defined but not used
rm -f yaffs.o
Thanks,
Aras