]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
YAFFS2: fs/yaffs2/yaffs_nand.[hc] - fix build warnings
authorWolfgang Denk <wd@denx.de>
Thu, 8 Sep 2011 02:10:20 +0000 (02:10 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:00:25 +0000 (00:00 +0200)
Fix these:
yaffs_guts.c: In function 'yaffs_Scan':
yaffs_guts.c:5436: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
yaffs_guts.c: In function 'yaffs_ScanBackwards':
yaffs_guts.c:6017: warning: pointer targets in passing argument 4 of 'yaffs_QueryInitialBlockState' differ in signedness
yaffs_nand.c: In function 'yaffs_QueryInitialBlockState':
yaffs_nand.c:109: warning: pointer targets in passing argument 4 of 'dev->queryNANDBlock' differ in signedness
yaffs_nand.c:113: warning: pointer targets in passing argument 4 of 'yaffs_TagsCompatabilityQueryNANDBlock' differ in signedness

Signed-off-by: Wolfgang Denk <wd@denx.de>
fs/yaffs2/yaffs_nand.c
fs/yaffs2/yaffs_nand.h

index e790be61a54ecf7e0f7e56dab487cf97e4fc6393..ce048cc1851d363206297bbcf9ff1cc5f9493a47 100644 (file)
@@ -101,7 +101,7 @@ int yaffs_MarkBlockBad(yaffs_Device * dev, int blockNo)
 int yaffs_QueryInitialBlockState(yaffs_Device * dev,
                                                 int blockNo,
                                                 yaffs_BlockState * state,
-                                                unsigned *sequenceNumber)
+                                                int *sequenceNumber)
 {
        blockNo -= dev->blockOffset;
 
index 48e3f7ec6dd2d4ae696b19382ce3f300613c2f05..f3bedcf35c7184906806628fe6e5a70cb5f2d687 100644 (file)
@@ -33,7 +33,7 @@ int yaffs_MarkBlockBad(yaffs_Device * dev, int blockNo);
 int yaffs_QueryInitialBlockState(yaffs_Device * dev,
                                                 int blockNo,
                                                 yaffs_BlockState * state,
-                                                unsigned *sequenceNumber);
+                                                int *sequenceNumber);
 
 int yaffs_EraseBlockInNAND(struct yaffs_DeviceStruct *dev,
                                  int blockInNAND);