
On Tue, Jul 22, 2008 at 10:09 AM, Kyungmin Park kmpark@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