[patch] 2.6.6-mm5: JFFS2_FS_NAND=y compile error

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 05/22/04

  • Next message: Arjan van de Ven: "Re: ioctl number 0xF3"
    Date:	Sat, 22 May 2004 14:19:05 +0200
    To: Andrew Morton <akpm@osdl.org>, Rusty Russell <rusty@rustcorp.com.au>, David Woodhouse <dwmw2@infradead.org>, Sam Ravnborg <sam@ravnborg.org>, l.s.r@web.de, Linus Torvalds <torvalds@osdl.org>
    
    

    The patch
      [PATCH] trivial: Make JFFS2 ready for Linux 2.7
    from Linus' tree is broken with CONFIG_JFFS2_FS_NAND=y:

    <-- snip -->

    ...
      LD .tmp_vmlinux1
    fs/built-in.o(.text+0x16bdc2): In function `jffs2_wbuf_recover':
    : undefined reference to `jffs2_erase_pending_trigger'
    fs/built-in.o(.text+0x16c0e2): In function `jffs2_wbuf_recover':
    : undefined reference to `jffs2_reserve_space_gc'
    fs/built-in.o(.text+0x16c198): In function `jffs2_wbuf_recover':
    : undefined reference to `jffs2_alloc_raw_node_ref'
    fs/built-in.o(.text+0x16c1d0): In function `jffs2_wbuf_recover':
    : undefined reference to `jffs2_add_physical_node_ref'
    fs/built-in.o(.text+0x16c46b): In function `jffs2_wbuf_recover':
    : undefined reference to `jffs2_erase_pending_trigger'
    fs/built-in.o(.text+0x16c8f9): In function `__jffs2_flush_wbuf':
    : undefined reference to `jffs2_erase_pending_trigger'
    fs/built-in.o(.text+0x16c9f3): In function `jffs2_flush_wbuf_gc':
    : undefined reference to `jffs2_garbage_collect_pass'
    fs/built-in.o(.text+0x16cac8): In function `jffs2_flash_writev':
    : undefined reference to `jffs2_flash_direct_writev'
    make: *** [.tmp_vmlinux1] Error 1

    <-- snip -->

    The bug is obvious, and the fix is trivial:

    --- linux-2.6.6-mm5-full/fs/jffs2/Makefile.old 2004-05-22 14:15:47.000000000 +0200
    +++ linux-2.6.6-mm5-full/fs/jffs2/Makefile 2004-05-22 14:16:30.000000000 +0200
    @@ -12,4 +12,4 @@
     jffs2-y += symlink.o build.o erase.o background.o fs.o writev.o
     jffs2-y += super.o
     
    -jffs2-$(CONFIG_JFFS2_FS_NAND) := wbuf.o
    +jffs2-$(CONFIG_JFFS2_FS_NAND) += wbuf.o

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Arjan van de Ven: "Re: ioctl number 0xF3"

    Relevant Pages

    • [2.6 patch] add missing dependencies on MTD_PARTITIONS (fwd)
      ... > I was looking to compare RT latency between this kernel and the latest from ... [2.6 patch] add missing dependencies on MTD_PARTITIONS ... : undefined reference to `add_mtd_partitions' ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] ISDN PCBIT: #ifdef MODULE some code
      ... : undefined reference to `pcbit_terminate' ... +#ifdef MODULE ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] HISAX_SEDLBAUER_CS needs HISAX_SEDLBAUER
      ... the final linking fails with the followingg error: ... : undefined reference to `sedl_init_pcmcia' ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.4.27-pre2: tg3: theres no WARN_ON in 2.4
      ... tg3.c:6267: warning: implicit declaration of function `WARN_ON' ... : undefined reference to `WARN_ON' ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch] 2.6.7-mm3 ALSA gus compile error
      ... : undefined reference to `snd_seq_iwffff_init' ... # Toplevel Module Dependency ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)