[Yaffs] Compile error on linux kernel 2.6.18

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Aubrey
Date:  
To: yaffs
Subject: [Yaffs] Compile error on linux kernel 2.6.18
Hi all,

When I patch the yaffs2 to the linux kernel 2.6.18, I got the following error:
=================================================================
fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_write':
fs/yaffs2/yaffs_fs.c:826: warning: format '%d' expects type 'int', but
argument 2 has type 'size_t'
fs/yaffs2/yaffs_fs.c:835: warning: format '%d' expects type 'int', but
argument 2 has type 'size_t'
fs/yaffs2/yaffs_fs.c: At top level:
fs/yaffs2/yaffs_fs.c:1327: warning: 'yaffs_do_sync_fs' defined but not used
  CC [M]  fs/yaffs2/yaffs_guts.o
fs/yaffs2/yaffs_guts.c: In function 'yaffs_Scan':
fs/yaffs2/yaffs_guts.c:4660: warning: unused variable 'hl'
fs/yaffs2/yaffs_guts.c: In function 'yaffs_CheckStructures':
fs/yaffs2/yaffs_guts.c:6632: warning: format '%d' expects type 'int',
but argument 4 has type 'long unsigned int'
fs/yaffs2/yaffs_guts.c:6634: warning: format '%d' expects type 'int',
but argument 4 has type 'long unsigned int'
fs/yaffs2/yaffs_guts.c: In function 'yaffs_CheckGarbageCollection':
fs/yaffs2/yaffs_guts.c:2030: warning: 'pagesInUse' may be used
uninitialized in this function
  CC [M]  fs/yaffs2/yaffs_checkptrw.o
  CC [M]  fs/yaffs2/yaffs_packedtags2.o
  CC [M]  fs/yaffs2/yaffs_nand.o
  CC [M]  fs/yaffs2/yaffs_qsort.o
fs/yaffs2/yaffs_qsort.c:77:1: warning: "min" redefined
In file included from fs/yaffs2/yportenv.h:35,
                 from fs/yaffs2/yaffs_qsort.c:30:
include/linux/kernel.h:264:1: warning: this is the location of the
previous definition
  CC [M]  fs/yaffs2/yaffs_tagscompat.o
  CC [M]  fs/yaffs2/yaffs_tagsvalidity.o
  CC [M]  fs/yaffs2/yaffs_mtdif.o
fs/yaffs2/yaffs_mtdif.c: In function 'nandmtd_WriteChunkToNAND':
fs/yaffs2/yaffs_mtdif.c:89: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif.c:100: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif.c: In function 'nandmtd_ReadChunkFromNAND':
fs/yaffs2/yaffs_mtdif.c:153: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
fs/yaffs2/yaffs_mtdif.c:163: error: 'yaffs_Device' has no member named
'nBytesPerChunk'
make[3]: *** [fs/yaffs2/yaffs_mtdif.o] Error 1
make[2]: *** [fs/yaffs2] Error 2
make[1]: *** [fs] Error 2
make[1]: Leaving directory `/home/aubrey/cvs/kernel/uClinux-dist/linux-2.6.x'
make: *** [linux] Error 1
==================================================================


Welcome any help.
Thanks,

-Aubrey