zaptel.c: In function `zt_chan_reg':
zaptel.c:1176: warning: implicit declaration of function `write_lock_irqsave'
zaptel.c:1179: warning: implicit declaration of function `spin_lock_init'
zaptel.c:1179: dereferencing pointer to incomplete type
zaptel.c:1183: dereferencing pointer to incomplete type
zaptel.c:1184: dereferencing pointer to incomplete type
zaptel.c:1185: dereferencing pointer to incomplete type
zaptel.c:1186: dereferencing pointer to incomplete type
zaptel.c:1187: dereferencing pointer to incomplete type
zaptel.c:1187: dereferencing pointer to incomplete type
zaptel.c:1188: dereferencing pointer to incomplete type
zaptel.c:1189: dereferencing pointer to incomplete type
zaptel.c:1189: dereferencing pointer to incomplete type
zaptel.c:1194: dereferencing pointer to incomplete type
zaptel.c:1199: warning: implicit declaration of function `write_unlock_irqrestore'
zaptel.c:1201: `KERN_ERR' undeclared (first use in this function)
zaptel.c:1201: parse error before string constant
zaptel.c: In function `zt_chan_unreg':
==========================================================
There are alof of error...here is what I get in the END
==========================================================
zaptel.c:6376: unknown field `write' specified in initializer
zaptel.c:6376: warning: excess elements in struct initializer
zaptel.c:6376: warning: (near initialization for `zt_fops')
zaptel.c:6377: unknown field `poll' specified in initializer
zaptel.c:6377: warning: excess elements in struct initializer
zaptel.c:6377: warning: (near initialization for `zt_fops')
zaptel.c:6378: unknown field `mmap' specified in initializer
zaptel.c:6378: warning: excess elements in struct initializer
zaptel.c:6378: warning: (near initialization for `zt_fops')
zaptel.c:6379: unknown field `flush' specified in initializer
zaptel.c:6379: warning: excess elements in struct initializer
zaptel.c:6379: warning: (near initialization for `zt_fops')
zaptel.c:6380: unknown field `fsync' specified in initializer
zaptel.c:6380: warning: excess elements in struct initializer
zaptel.c:6380: warning: (near initialization for `zt_fops')
zaptel.c:6381: unknown field `fasync' specified in initializer
zaptel.c:6381: warning: excess elements in struct initializer
zaptel.c:6381: warning: (near initialization for `zt_fops')
zaptel.c: In function `zt_init':
zaptel.c:6471: warning: implicit declaration of function `register_chrdev'
zaptel.c:6472: `KERN_ERR' undeclared (first use in this function)
zaptel.c:6472: parse error before string constant
zaptel.c:6477: `KERN_INFO' undeclared (first use in this function)
zaptel.c:6477: parse error before string constant
zaptel.c:6482: warning: implicit declaration of function `rwlock_init'
zaptel.c: In function `zt_cleanup':
zaptel.c:6496: `KERN_INFO' undeclared (first use in this function)
zaptel.c:6496: parse error before string constant
zaptel.c:6515: warning: implicit declaration of function `unregister_chrdev'
zaptel.c: At top level:
zaptel.c:6369: storage size of `zt_fops' isn't known
/usr/include/linux/proc_fs.h:193: warning: `create_proc_read_entry' declared `st
atic' but never defined
make: *** [zaptel.o] Error 1