]> err.no Git - linux-2.6/commit
[PATCH] mtd cmdlinepart: allow zero offset value
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 31 Mar 2006 10:29:46 +0000 (02:29 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:48 +0000 (12:18 -0800)
commitb175d03dd207283609b7f8bfdaa5dc93ac9b16dd
tree2a570c584d29fccf8159e87ddbd9b1cf4096b00b
parent87d10f3c7954d143e509a2af2bca2a27aeb3114d
[PATCH] mtd cmdlinepart: allow zero offset value

Current cmdlinepart.c uses offset value 0 to specify a continuous
partition.  This prevents creating a second partition starting at 0.

For example, I can split 4MB device using "mtdparts=id:2M,2M", but I can
not do "mtdparts=id:2M@2M,2M@0" to swap mtd0 and mtd1.

This patch introduces special OFFSET_CONTINUOUS value for a continuous
partition and allows 0 for offset value.

Also this patch replaces 0xffffffff with UINT_MAX for SIZE_REMAINING.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/cmdlinepart.c