diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-06-06 12:52:39 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-06-06 12:52:39 +0000 |
commit | 477d43b2817c17de1caaedc38e50c3e7235ee585 (patch) | |
tree | 8ba415f294639d4cdc93d6fa0902215a61a63d12 /target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c | |
parent | 306f3677ecbecce777f35bfe3a9475901055dff1 (diff) | |
download | upstream-477d43b2817c17de1caaedc38e50c3e7235ee585.tar.gz upstream-477d43b2817c17de1caaedc38e50c3e7235ee585.tar.bz2 upstream-477d43b2817c17de1caaedc38e50c3e7235ee585.zip |
generic-2.6: sync yaffs code with the official CVS tree
SVN-Revision: 11378
Diffstat (limited to 'target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c')
-rw-r--r-- | target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c b/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c index 7622b1af7c..ab756d06d0 100644 --- a/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c +++ b/target/linux/generic-2.6/files-2.6.25/fs/yaffs2/yaffs_tagscompat.c @@ -14,6 +14,7 @@ #include "yaffs_guts.h" #include "yaffs_tagscompat.h" #include "yaffs_ecc.h" +#include "yaffs_getblockinfo.h" static void yaffs_HandleReadDataError(yaffs_Device * dev, int chunkInNAND); #ifdef NOTYET @@ -438,7 +439,7 @@ int yaffs_TagsCompatabilityReadChunkWithTagsFromNAND(yaffs_Device * dev, yaffs_ECCResult eccResult; static yaffs_Spare spareFF; - static int init; + static int init = 0; if (!init) { memset(&spareFF, 0xFF, sizeof(spareFF)); @@ -497,9 +498,9 @@ int yaffs_TagsCompatabilityMarkNANDBlockBad(struct yaffs_DeviceStruct *dev, } int yaffs_TagsCompatabilityQueryNANDBlock(struct yaffs_DeviceStruct *dev, - int blockNo, yaffs_BlockState * - state, - int *sequenceNumber) + int blockNo, + yaffs_BlockState *state, + __u32 *sequenceNumber) { yaffs_Spare spare0, spare1; |