1 --- a/fs/yaffs2/yaffs_fs.c
2 +++ b/fs/yaffs2/yaffs_fs.c
4 f->f_version = inode->i_version;
7 - list_for_each(i, &obj->variant.directoryVariant.children) {
8 + list_for_each(i, (struct list_head *)&obj->variant.directoryVariant.children) {
10 if (curoffs >= offset) {
11 l = list_entry(i, yaffs_Object, siblings);
15 target->variantType == YAFFS_OBJECT_TYPE_DIRECTORY &&
16 - !list_empty(&target->variant.directoryVariant.children)) {
17 + !list_empty((struct list_head *)&target->variant.directoryVariant.children)) {
19 T(YAFFS_TRACE_OS, (KERN_DEBUG "target is non-empty dir\n"));
22 yaffs_GrossUnlock(dev);
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);
29 YFREE(dev->spareBuffer);
31 dev->skipCheckpointWrite = options.skip_checkpoint_write;
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);
37 init_MUTEX(&dev->grossLock);
39 --- a/fs/yaffs2/yaffs_mtdif1.c
40 +++ b/fs/yaffs2/yaffs_mtdif1.c
42 * Always returns YAFFS_OK.
44 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
45 - yaffs_BlockState * pState, int *pSequenceNumber)
46 + yaffs_BlockState * pState, __u32 *pSequenceNumber)
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
53 int nandmtd1_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
55 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
56 - yaffs_BlockState * state, int *sequenceNumber);
57 + yaffs_BlockState * state, __u32 *sequenceNumber);
60 --- a/fs/yaffs2/yaffs_mtdif2.c
61 +++ b/fs/yaffs2/yaffs_mtdif2.c
65 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
66 - yaffs_BlockState * state, int *sequenceNumber)
67 + yaffs_BlockState * state, __u32 *sequenceNumber)
69 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice);
71 --- a/fs/yaffs2/yaffs_mtdif2.h
72 +++ b/fs/yaffs2/yaffs_mtdif2.h
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);