>
> It's not this patch contents.
>
I'ts related with the previous patch "JFFS2 support on OneNAND"
> Anyway, it should be below.
>
>  static inline void put_fl_mem(void *buf)
>  {
> -#if defined(CONFIG_JFFS2_NAND) && \
> -    defined(CONFIG_CMD_NAND)
> +#if (defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND)) || \
> +    defined(CONFIG_CMD_ONENAND)
>        struct mtdids *id = current_part->dev->id;
> +#endif
>
> +#if defined(CONFIG_JFFS2_NAND) && \
> +    defined(CONFIG_CMD_NAND)
>         if (id->type == MTD_DEV_TYPE_NAND)
>                return put_fl_mem_nand(buf);
>  #endif
> +
> +#if defined(CONFIG_CMD_ONENAND)
> +       if (id->type == MTD_DEV_TYPE_ONENAND)
> +               return put_fl_mem_onenand(buf);
> +#endif
>
> Next time it will be clean-uped with next patches.
>

nand_bbt_descr is duplicated:
In file included from /u-boot-1.3.3/include/linux/mtd/onenand.h:21,
                 from jffs2_1pass.c:279:
/u-boot-1.3.3/include/linux/mtd/bbm.h:49: error: redefinition of 'struct
nand_bbt_descr'
make[1]: *** [jffs2_1pass.o] Error 1

It is defined in iinclude/linux/mtd/bbm.h
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to