in CVS: drivers/mtd/mtdchar.c:65: called object is not a function

Miernik miernik at
Wed Nov 5 05:28:46 EST 2003

On 2003-11-04, Miernik <miernik at> wrote:
> I tried patching 2.6.0-test9 kernel with CVS code fetched today at ~ 
> 22:30 CET, and I ended with this:

After I took the original mtdchar.c from kernel-source, it compiled 
OK, but I got another problem:

  CC [M]  drivers/mtd/mtdchar.o
  CC [M]  drivers/mtd/mtdblock.o
  CC [M]  drivers/mtd/mtd_blkdevs.o
In file included from drivers/mtd/mtd_blkdevs.c:18:
include/linux/blk.h:1: warning: #warning this file is obsolete, please use <linux/blkdev.h> instead
drivers/mtd/mtd_blkdevs.c: In function `register_mtd_blktrans':
drivers/mtd/mtd_blkdevs.c:396: warning: passing arg 1 of `blk_init_queue' from incompatible pointer type
drivers/mtd/mtd_blkdevs.c:396: warning: passing arg 2 of `blk_init_queue' from incompatible pointer type
drivers/mtd/mtd_blkdevs.c:396: too many arguments to function `blk_init_queue'
make[3]: *** [drivers/mtd/mtd_blkdevs.o] Error 1
make[2]: *** [drivers/mtd] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.0-test9'
make: *** [stamp-build] Error 2
miernik at debina:/usr/src/kernel-source-2.6.0-test9$

    Miernik         ________________________ jabber:miernik at
___________________/__ tel: +48608233394 __/      mailto:miernik at
Learn about crime done by George W. Bush in Iraq, and related to 9/11

More information about the linux-mtd mailing list