[package] iw: update to 0.9.17
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.21 / 511-yaffs_reduce_compiler_warnings.patch
1 --- a/fs/yaffs2/yaffs_fs.c
2 +++ b/fs/yaffs2/yaffs_fs.c
3 @@ -965,7 +965,7 @@ static int yaffs_readdir(struct file *f,
4 f->f_version = inode->i_version;
5 }
6
7 - list_for_each(i, &obj->variant.directoryVariant.children) {
8 + list_for_each(i, (struct list_head *)&obj->variant.directoryVariant.children) {
9 curoffs++;
10 if (curoffs >= offset) {
11 l = list_entry(i, yaffs_Object, siblings);
12 @@ -1269,7 +1269,7 @@ static int yaffs_rename(struct inode *ol
13
14 if (target &&
15 target->variantType == YAFFS_OBJECT_TYPE_DIRECTORY &&
16 - !list_empty(&target->variant.directoryVariant.children)) {
17 + !list_empty((struct list_head *)&target->variant.directoryVariant.children)) {
18
19 T(YAFFS_TRACE_OS, (KERN_DEBUG "target is non-empty dir\n"));
20
21 @@ -1503,7 +1503,7 @@ static void yaffs_put_super(struct super
22 yaffs_GrossUnlock(dev);
23
24 /* we assume this is protected by lock_kernel() in mount/umount */
25 - list_del(&dev->devList);
26 + list_del((struct list_head *)&dev->devList);
27
28 if(dev->spareBuffer){
29 YFREE(dev->spareBuffer);
30 @@ -1847,7 +1847,7 @@ static struct super_block *yaffs_interna
31 dev->skipCheckpointWrite = options.skip_checkpoint_write;
32
33 /* we assume this is protected by lock_kernel() in mount/umount */
34 - list_add_tail(&dev->devList, &yaffs_dev_list);
35 + list_add_tail((struct list_head *)&dev->devList, &yaffs_dev_list);
36
37 init_MUTEX(&dev->grossLock);
38
39 --- a/fs/yaffs2/yaffs_mtdif1.c
40 +++ b/fs/yaffs2/yaffs_mtdif1.c
41 @@ -323,7 +323,7 @@ static int nandmtd1_TestPrerequists(stru
42 * Always returns YAFFS_OK.
43 */
44 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
45 - yaffs_BlockState * pState, int *pSequenceNumber)
46 + yaffs_BlockState * pState, __u32 *pSequenceNumber)
47 {
48 struct mtd_info * mtd = dev->genericDevice;
49 int chunkNo = blockNo * dev->nChunksPerBlock;
50 --- a/fs/yaffs2/yaffs_mtdif1.h
51 +++ b/fs/yaffs2/yaffs_mtdif1.h
52 @@ -23,6 +23,6 @@ int nandmtd1_ReadChunkWithTagsFromNAND(y
53 int nandmtd1_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
54
55 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
56 - yaffs_BlockState * state, int *sequenceNumber);
57 + yaffs_BlockState * state, __u32 *sequenceNumber);
58
59 #endif
60 --- a/fs/yaffs2/yaffs_mtdif2.c
61 +++ b/fs/yaffs2/yaffs_mtdif2.c
62 @@ -188,7 +188,7 @@ int nandmtd2_MarkNANDBlockBad(struct yaf
63 }
64
65 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
66 - yaffs_BlockState * state, int *sequenceNumber)
67 + yaffs_BlockState * state, __u32 *sequenceNumber)
68 {
69 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice);
70 int retval;
71 --- a/fs/yaffs2/yaffs_mtdif2.h
72 +++ b/fs/yaffs2/yaffs_mtdif2.h
73 @@ -24,6 +24,6 @@ int nandmtd2_ReadChunkWithTagsFromNAND(y
74 __u8 * data, yaffs_ExtendedTags * tags);
75 int nandmtd2_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
76 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
77 - yaffs_BlockState * state, int *sequenceNumber);
78 + yaffs_BlockState * state, __u32 *sequenceNumber);
79
80 #endif
This page took 0.044032 seconds and 5 git commands to generate.