[uClinux-dev] [PATCH] mtd: clean up uclinux.c map driver

Artem Bityutskiy dedekind1 at gmail.com
Wed May 16 05:28:52 EDT 2012


On Tue, 2012-05-15 at 11:57 -0400, Mike Frysinger wrote:
> On Tue, May 15, 2012 at 12:08 AM,  <gerg at snapgear.com> wrote:
> > . make the struct uclinux_ram_map static
> 
> NAK: this breaks Blackfin systems.  we specifically don't want this to
> be static.
> 
> it should probably get a comment added above it saying as much.

I've just amended that patch and made it non-static as well. But this is
really ugly dependency.

diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c
index ad75346..d8aa6df 100644
--- a/drivers/mtd/maps/uclinux.c
+++ b/drivers/mtd/maps/uclinux.c
@@ -21,7 +21,7 @@
 
 extern char _ebss;
 
-static struct map_info uclinux_ram_map = {
+struct map_info uclinux_ram_map = {
        .name = "RAM",
        .phys = (unsigned long)&_ebss,
        .size = 0,


-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120516/cdb052ab/attachment.sig>


More information about the linux-mtd mailing list