[PATCH] extend physmap.c to support run-time configure and partitioning (take 3)
jsun at mvista.com
Wed Nov 5 12:56:58 EST 2003
On Wed, Nov 05, 2003 at 09:14:51AM +0000, David Woodhouse wrote:
> On Tue, 2003-11-04 at 16:44 -0800, Jun Sun wrote:
> > David,
> > Since you did not give any preference on how board should
> > pass partition info to physmap, I just picked a reasonable
> > one.
> Sorry for the lack of response. Been beating up JFFS2 with LTP and it's
> been, erm, 'interesting'. S'fixed now though :)
> > Is this patch now good enough to apply? Thanks.
> I'd still prefer to do it without any static variables in physmap.c.
Hmm, can you be more specific? Here are all static variables that
matter in physmap.c. Which ones are you thinking to eliminate? And in
what way? (Assuming you do not mean I just drop "static" modifier...)
static struct mtd_info *mymtd;
static struct mtd_partition *mtd_parts;
static int mtd_parts_nb;
static int num_physmap_partitions;
static struct mtd_partition *physmap_partitions;
More information about the linux-mtd