Minimal changes to make sparse happier. Signed-off-by: Jörn Engel --- drivers/mtd/maps/vmu_flash.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) --- maple/drivers/mtd/maps/vmu_flash.c~cu2 2008-03-24 14:39:05.000000000 +0100 +++ maple/drivers/mtd/maps/vmu_flash.c 2008-03-24 14:44:24.000000000 +0100 @@ -136,7 +136,7 @@ static int maple_vmu_read_block(unsigned struct mdev_part *mpart; struct maple_device *mdev; int partition, error = 0, locking; - void *sendbuf; + __be32 *sendbuf; mpart = mtd->priv; mdev = mpart->mdev; @@ -162,8 +162,8 @@ static int maple_vmu_read_block(unsigned goto fail_nosendbuf; } - ((unsigned long *)sendbuf)[0] = cpu_to_be32(MAPLE_FUNC_MEMCARD); - ((unsigned long *)sendbuf)[1] = cpu_to_be32(partition << 24 | num); + sendbuf[0] = cpu_to_be32(MAPLE_FUNC_MEMCARD); + sendbuf[1] = cpu_to_be32(partition << 24 | num); mdev->mq->sendbuf = sendbuf; block_read = 0; @@ -207,7 +207,7 @@ static int maple_vmu_write_block(unsigne struct mdev_part *mpart; struct maple_device *mdev; int partition, error, locking, x, phaselen; - void *sendbuf; + __be32 *sendbuf; mpart = mtd->priv; mdev = mpart->mdev; @@ -224,7 +224,7 @@ static int maple_vmu_write_block(unsigne goto fail_nosendbuf; } - ((unsigned long *)sendbuf)[0] = cpu_to_be32(MAPLE_FUNC_MEMCARD); + sendbuf[0] = cpu_to_be32(MAPLE_FUNC_MEMCARD); for (x = 0; x < card->writecnt; x++) { /* take the lock to protect the contents of sendbuf */ @@ -233,8 +233,7 @@ static int maple_vmu_write_block(unsigne error = -EBUSY; goto fail_nolock; } - ((unsigned long *)sendbuf)[1] = - cpu_to_be32(partition << 24 | x << 16 | num); + sendbuf[1] = cpu_to_be32(partition << 24 | x << 16 | num); memcpy(sendbuf + 8, buf + phaselen * x, phaselen); mdev->mq->sendbuf = sendbuf; maple_add_packet(mdev->mq); @@ -467,7 +466,7 @@ failed: static int vmu_flash_erase(struct mtd_info *mtd, struct erase_info *erase) { - int z; + size_t z; erase->state = MTD_ERASING; vmu_flash_write(mtd, erase->addr, erase->len, &z, "\0"); erase->state = MTD_ERASE_DONE;