[PATCH 4/5] libmtd: add support for 64-bit offsets, OOB

Mike Frysinger vapier.adi at gmail.com
Mon Jul 5 18:58:49 EDT 2010


On Mon, Jul 5, 2010 at 18:10, Kevin Cernekee wrote:
> Change mtd_erase() so that it attempts to use MEMERASE64 first, then falls
> back to the old <2.6.31 MEMERASE if MEMERASE64 is unsupported.

very cool

> +               struct erase_info_user ei_old;
> +
> +               ei_old.start = (__u32)ei.start;
> +               ei_old.length = (__u32)ei.length;

the casts are useless since the assigned types are __u32

> +               struct mtd_oob_buf oob_old;
> +
> +               oob_old.start = (__u32)oob.start;
> +               oob_old.length = (__u32)oob.length;

same here
-mike



More information about the linux-mtd mailing list