2.6.16 compile error with latest cvs mtd source

Mirco Fuchs mircofuchs at web.de
Thu Mar 23 07:02:21 EST 2006


Hello,

i have a problem compiling the 2.6.16 kernel for my csb637 board. I think this
is an mtd related question because it works without patching the kernel
against the  mtd source code.

I have gcc 3.4.4 and binutils 2.16 and glibx 2.3.5.

The first step was compiling the 2.6.16 kernel without patching against the
mtd cvs sources. --> The compilation was successfull.

But patching the kernel against the head of the mtd cvs repo resulted in the
following warnings and errors:

(I used the command 'patchkernel.sh -2cyv $KERNELDIR' for patching)

...
  CC      drivers/mtd/mtdcore.o
  CC      drivers/mtd/mtdpart.o
  CC      drivers/mtd/mtdconcat.o
  CC      drivers/mtd/cmdlinepart.o
  CC      drivers/mtd/mtdchar.o
  CC      drivers/mtd/mtdblock.o
  CC      drivers/mtd/mtd_blkdevs.o
  CC      drivers/mtd/chips/chipreg.o
  CC      drivers/mtd/chips/cfi_probe.o
  CC      drivers/mtd/chips/cfi_util.o
  CC      drivers/mtd/chips/cfi_cmdset_0020.o
drivers/mtd/chips/cfi_cmdset_0020.c: In function `cfi_staa_init':
drivers/mtd/chips/cfi_cmdset_0020.c:1417: Warnung: »inter_module_register« ist veraltet (deklariert bei
include/linux/module.h:571)
drivers/mtd/chips/cfi_cmdset_0020.c: In function `cfi_staa_exit':
drivers/mtd/chips/cfi_cmdset_0020.c:1423: Warnung: »inter_module_unregister« ist veraltet (deklariert bei
include/linux/module.h:572)
  CC      drivers/mtd/chips/cfi_cmdset_0001.o
drivers/mtd/chips/cfi_cmdset_0001.c: In function `cfi_intelext_init':
drivers/mtd/chips/cfi_cmdset_0001.c:2458: Warnung: »inter_module_register« ist veraltet (deklariert bei
include/linux/module.h:571)
drivers/mtd/chips/cfi_cmdset_0001.c:2459: Warnung: »inter_module_register« ist veraltet (deklariert bei
include/linux/module.h:571)
drivers/mtd/chips/cfi_cmdset_0001.c:2460: Warnung: »inter_module_register« ist veraltet (deklariert bei
include/linux/module.h:571)
drivers/mtd/chips/cfi_cmdset_0001.c: In function `cfi_intelext_exit':
drivers/mtd/chips/cfi_cmdset_0001.c:2466: Warnung: »inter_module_unregister« ist veraltet (deklariert bei
include/linux/module.h:572)
drivers/mtd/chips/cfi_cmdset_0001.c:2467: Warnung: »inter_module_unregister« ist veraltet (deklariert bei
include/linux/module.h:572)
drivers/mtd/chips/cfi_cmdset_0001.c:2468: Warnung: »inter_module_unregister« ist veraltet (deklariert bei
include/linux/module.h:572)
  CC      drivers/mtd/chips/gen_probe.o
drivers/mtd/chips/gen_probe.c: In function `cfi_cmdset_unknown':
drivers/mtd/chips/gen_probe.c:210: Warnung: »inter_module_put« ist veraltet (deklariert bei
include/linux/module.h:575)
  LD      drivers/mtd/chips/built-in.o
  LD      drivers/mtd/devices/built-in.o
  CC      drivers/mtd/maps/physmap.o
  LD      drivers/mtd/maps/built-in.o
  LD      drivers/mtd/nand/built-in.o
  LD      drivers/mtd/onenand/built-in.o
  LD      drivers/mtd/built-in.o

...

  CC      lib/kref.o
  CC      lib/prio_tree.o
  CC      lib/radix-tree.o
  CC      lib/rbtree.o
  CC      lib/rwsem-spinlock.o
  CC      lib/sha1.o
  CC      lib/string.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `cfi_cmdset_unknown':
drivers/mtd/chips/gen_probe.c:203: undefined reference to `inter_module_get_request'
drivers/mtd/chips/gen_probe.c:210: undefined reference to `inter_module_put'
drivers/built-in.o: In function `cfi_staa_init':
drivers/mtd/chips/cfi_cmdset_0020.c:1417: undefined reference to `inter_module_register'
drivers/built-in.o: In function `cfi_intelext_init':
drivers/mtd/chips/cfi_cmdset_0001.c:2458: undefined reference to `inter_module_register'
drivers/mtd/chips/cfi_cmdset_0001.c:2459: undefined reference to `inter_module_register'
drivers/mtd/chips/cfi_cmdset_0001.c:2460: undefined reference to `inter_module_register'
make: *** [.tmp_vmlinux1] Fehler 1

Are there any suggestions?

Note: I patched the 2.6.15 kernel against the head of the mtd cvs repo which
resulted in a successfully compilation.


regards

Mirco

__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!		
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131





More information about the linux-mtd mailing list