Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Artem Bityutskiy
On Tue, 2010-12-07 at 10:20 -0800, Jason Lunz wrote: > On Tue, Dec 07, 2010 at 10:39:41AM +0100, richard -rw- weinberger wrote: > > On Tue, Dec 7, 2010 at 8:29 AM, Jason Lunz wrote: > > > > > > Allow parts of drivers/mtd to compile on uml by pushing the HAS_IOMEM > > > dependencies down closer to

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Jason Lunz
On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: > But I think your solution is a bit dirty, because it adds a great deal > of little 'if HAS_IOMEM' and '#ifdef CONFIG_HAS_IOMEM' to many places. > This is error-prone. The intent of that patch was to allow as much of the mtd subsy

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Artem Bityutskiy
On Tue, 2010-12-14 at 11:51 -0800, Jason Lunz wrote: > On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: > > But I think your solution is a bit dirty, because it adds a great deal > > of little 'if HAS_IOMEM' and '#ifdef CONFIG_HAS_IOMEM' to many places. > > This is error-prone. >

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Jason Lunz
On one hand you've got uml, which simply doesn't have mmio. On the other there's mtd, which began as a method for accessing hardware devices that are often accessed using mmio. But then the mtd subsystem developed emulations of that hardware that are software based and thus don't require mmio. It'

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Geert Uytterhoeven
On Tue, Dec 14, 2010 at 21:01, Artem Bityutskiy wrote: > On Tue, 2010-12-14 at 11:51 -0800, Jason Lunz wrote: >> On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: >> > But I think your solution is a bit dirty, because it adds a great deal >> > of little 'if HAS_IOMEM' and '#ifdef C

[uml-devel] [PATCH] uml: mmapper_kern needs MODULE_LICENSE

2010-12-14 Thread Randy Dunlap
From: Randy Dunlap Add missing MODULE_LICENSE(): WARNING: modpost: missing MODULE_LICENSE() in arch/um/drivers/mmapper_kern.o Signed-off-by: Randy Dunlap Cc: Greg Lonnon --- arch/um/drivers/mmapper_kern.c |1 + 1 file changed, 1 insertion(+) --- linux-next-20101214.orig/arch/um/drivers

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Rob Landley
On Tuesday 14 December 2010 14:01:33 Artem Bityutskiy wrote: > > > Instead, you should solve this problem in UML code. I do not know how, > > > but may be you can add readb/writeb there which actually do nothing or > > > print a scary warning, or do BUG(), and let things which use them just > > > f

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Jason Lunz
On Tue, Dec 14, 2010 at 06:49:02PM -0600, Rob Landley wrote: > The problem is that jffs2 is a filesystem, and thus something people would > really like to be able to loopback mount, but it's hardwired to assume it's > only ever stored on a certain type of hardware, and thus requies incestuous >

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Rob Landley
On Tuesday 14 December 2010 15:23:49 Jason Lunz wrote: > On one hand you've got uml, which simply doesn't have mmio. On the other > there's mtd, which began as a method for accessing hardware devices that > are often accessed using mmio. But then the mtd subsystem developed > emulations of that har