lkml.org 
[lkml]   [2007]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: getting FUSD compiled with current kernels
    Date
    On Saturday 29 September 2007, Florian Schmidt wrote:
    > Hi,
    >
    > I'm trying to build FUSD [1] against current kernels [2.6.22]. I get errors
    > [2]:

    Oh i forgot to show the code snippets in question. I put them to the
    crresponding error below [matching line number is marked with [*]]:

    >
    > [2] ~/source/build_stuff/fusd$ make
    > make -C libfusd
    > make[1]: Entering directory `/home/tapas/source/build_stuff/fusd/libfusd'
    > make[1]: Nothing to be done for `default'.
    > make[1]: Leaving directory `/home/tapas/source/build_stuff/fusd/libfusd'
    > make -C kfusd
    > make[1]: Entering directory `/home/tapas/source/build_stuff/fusd/kfusd'
    > make -C /lib/modules/2.6.22-11-generic/build
    > SUBDIRS=/home/tapas/source/build_st
    > uff/fusd/kfusd
    > EXTRA_CFLAGS=-I/home/tapas/source/build_stuff/fusd/kfusd/../inclu
    > de modules
    > make[2]: Entering directory `/usr/src/linux-headers-2.6.22-11-generic'
    > CC [M] /home/tapas/source/build_stuff/fusd/kfusd/kfusd.o
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c: In function ‘to_kobj’:
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:135: error: dereferencing
    > poin
    > ter to incomplete type

    static inline struct kobject * to_kobj(struct dentry * dentry)
    {
    struct sysfs_dirent * sd = dentry->d_fsdata;
    if(sd)
    return ((struct kobject *) sd->s_element); [*]
    else
    return NULL;
    }


    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c: In
    > function ‘fusd_register_de
    > vice’:
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:2049: error: ‘struct
    > kset’ has
    > no member named ‘kset’

    [...]
    if(classdir2){
    // jackpot. extract the class.
    struct kobject *ko = to_kobj(classdir2);
    sys_class = (ko?to_class(ko):NULL); [*]

    if(!sys_class)
    RDEBUG(2, "WARNING: sysfs entry for %s has no kobject!
    \n",register_msg.clazz);
    }
    [...]

    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:2049: warning: type
    > defaults t
    > o ‘int’ in declaration of ‘__mptr’
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:2049: warning:
    > initialization
    >
    > >from incompatible pointer type
    >
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:2049: error: ‘struct
    > kset’ has
    > no member named ‘kset’
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c: At top level:
    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:2603: error: unknown
    > field ‘wr
    > itev’ specified in initializer

    STATIC struct file_operations fusd_fops = {
    owner: THIS_MODULE,
    open: fusd_open,
    read: fusd_read,
    write: fusd_write,
    writev: fusd_writev, [*]
    release: fusd_release,
    poll: fusd_poll,
    };



    > /home/tapas/source/build_stuff/fusd/kfusd/kfusd.c:2603: warning:
    > initialization
    >
    > >from incompatible pointer type
    >
    > make[3]: *** [/home/tapas/source/build_stuff/fusd/kfusd/kfusd.o] Error 1
    > make[2]: *** [_module_/home/tapas/source/build_stuff/fusd/kfusd] Error 2
    > make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-11-generic'
    > make[1]: *** [default] Error 2
    > make[1]: Leaving directory `/home/tapas/source/build_stuff/fusd/kfusd'
    > make: *** [default] Error 2
    >
    > [3] http://fort.xdas.com/~kor/oss2jack/



    --
    Palimm Palimm!
    http://tapas.affenbande.org
    -
    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/

    \
     
     \ /
      Last update: 2007-09-29 18:37    [W:0.031 / U:154.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site