lkml.org 
[lkml]   [2005]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.6.12-rc1-mm2 (patch to fix build error In function `zft_init')
    Steven Cole wrote:
    > I'm getting the following build error with 2.6.12-rc1-mm2:
    >
    > CC init/version.o
    > LD init/built-in.o
    > LD .tmp_vmlinux1
    > drivers/built-in.o(.init.text+0x4323): In function `zft_init':
    > : undefined reference to `class_device_creat'
    > make: *** [.tmp_vmlinux1] Error 1
    >

    I glanced at the code, and this little patch fixes the problem:

    Steven
    Signed-off by: Steven Cole <elenstev@mesatop.com>

    --- linux-2.6.12-rc1-mm2/drivers/char/ftape/zftape/zftape-init.c.orig 2005-03-24 08:43:30.000000000 -0700
    +++ linux-2.6.12-rc1-mm2/drivers/char/ftape/zftape/zftape-init.c 2005-03-24 08:43:56.000000000 -0700
    @@ -331,7 +331,7 @@

    zft_class = class_create(THIS_MODULE, "zft");
    for (i = 0; i < 4; i++) {
    - class_device_creat(zft_class, MKDEV(QIC117_TAPE_MAJOR, i), NULL, "qft%i", i);
    + class_device_create(zft_class, MKDEV(QIC117_TAPE_MAJOR, i), NULL, "qft%i", i);
    devfs_mk_cdev(MKDEV(QIC117_TAPE_MAJOR, i),
    S_IFCHR | S_IRUSR | S_IWUSR,
    "qft%i", i);
    \
     
     \ /
      Last update: 2005-04-06 13:30    [W:4.115 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site