[PATCH] [MTD] mtdchar.c: Fix regression in MEMGETREGIONINFO ioctl()

Jamie Lokier jamie at shareable.org
Sun Aug 24 08:38:34 EDT 2008


Andrew Morton wrote:
> struct mtd_erase_region_info {
> 	struct {
> 		u_int32_t offset;
> 		u_int32_t erasesize;
> 		u_int32_t numblocks;
> 	} user_part;
> 	unsigned long *lockmap;
> };

Is the name "struct mtd_erase_region_info" something userspace uses?

Nothing wrong with changing the kernel's version, as long as userspace
uses different headers, but it might be confusing.

-- Jamie



More information about the linux-mtd mailing list