<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It's not this patch contents. <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'ts related with the previous patch "JFFS2 support on OneNAND"<br>
Anyway, it should be below.<br>
<div class="Ih2E3d"><br>
static inline void put_fl_mem(void *buf)<br>
{<br>
-#if defined(CONFIG_JFFS2_NAND) && \<br>
- defined(CONFIG_CMD_NAND)<br>
</div>+#if (defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND)) || \<br>
<div class="Ih2E3d">+ defined(CONFIG_CMD_ONENAND)<br>
struct mtdids *id = current_part->dev->id;<br>
</div>+#endif<br>
<br>
+#if defined(CONFIG_JFFS2_NAND) && \<br>
+ defined(CONFIG_CMD_NAND)<br>
<div class="Ih2E3d"> if (id->type == MTD_DEV_TYPE_NAND)<br>
return put_fl_mem_nand(buf);<br>
#endif<br>
+<br>
+#if defined(CONFIG_CMD_ONENAND)<br>
</div>+ if (id->type == MTD_DEV_TYPE_ONENAND)<br>
<div class="Ih2E3d">+ return put_fl_mem_onenand(buf);<br>
+#endif<br>
<br>
</div>Next time it will be clean-uped with next patches.<br>
</blockquote></div><br>nand_bbt_descr is duplicated:<br>In file included from /u-boot-1.3.3/include/linux/mtd/onenand.h:21,<br> from jffs2_1pass.c:279:<br>/u-boot-1.3.3/include/linux/mtd/bbm.h:49: error: redefinition of 'struct nand_bbt_descr'<br>
make[1]: *** [jffs2_1pass.o] Error 1<br><br>It is defined in iinclude/linux/mtd/bbm.h <br></div>