[U-Boot-Users] [PATCH] Fix duplicated flash state

Fathi Boudra fboudra at gmail.com
Thu Jul 24 09:43:01 CEST 2008


On Tue, Jul 22, 2008 at 10:09 AM, Kyungmin Park <kmpark at infradead.org>
wrote:

> Move to one place
> I just compiled test. Please check other NAND users.
>
>
It fails to build, redefinition of id:
jffs2_1pass.c: In function 'put_fl_mem':
jffs2_1pass.c:466: error: redefinition of 'id'
jffs2_1pass.c:459: error: previous definition of 'id' was here

Relevant piece of code:

static inline void put_fl_mem(void *buf)
{
#if defined(CONFIG_JFFS2_NAND) && \
    defined(CONFIG_CMD_NAND)
    struct mtdids *id = current_part->dev->id;

    if (id->type == MTD_DEV_TYPE_NAND)
        return put_fl_mem_nand(buf);
#endif

#if defined(CONFIG_CMD_ONENAND)
    struct mtdids *id = current_part->dev->id;

    if (id->type == MTD_DEV_TYPE_ONENAND)
        return put_fl_mem_onenand(buf);
#endif
}

cheers,

Fathi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080724/ab442428/attachment.htm 


More information about the U-Boot mailing list