<div dir="ltr">On Tue, Jul 22, 2008 at 10:09 AM, Kyungmin Park <<a href="mailto:kmpark@infradead.org">kmpark@infradead.org</a>> wrote:<br><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;">
Move to one place<br>
I just compiled test. Please check other NAND users.<br>
<br></blockquote></div><br>It fails to build, redefinition of id:<br>jffs2_1pass.c: In function 'put_fl_mem':<br>jffs2_1pass.c:466: error: redefinition of 'id'<br>jffs2_1pass.c:459: error: previous definition of 'id' was here<br>
<br>Relevant piece of code:<br><br>static inline void put_fl_mem(void *buf)<br>{<br>#if defined(CONFIG_JFFS2_NAND) && \<br> defined(CONFIG_CMD_NAND)<br> struct mtdids *id = current_part->dev->id;<br><br>
if (id->type == MTD_DEV_TYPE_NAND)<br> return put_fl_mem_nand(buf);<br>#endif<br><br>#if defined(CONFIG_CMD_ONENAND)<br> struct mtdids *id = current_part->dev->id;<br><br> if (id->type == MTD_DEV_TYPE_ONENAND)<br>
return put_fl_mem_onenand(buf);<br>#endif<br>}<br><br>cheers,<br><br>Fathi<br><br></div>