I am getting trouble to compile the driver with my RedHAt
7.3 Kernel 2.4.18-3
Seems that this projekt is dead??
Here the logfile:
[root@carmen v3tv]# make
kgcc -Wall -O2 -I/usr/src/linux/include -D__KERNEL__
-DMODULE -c voodoo.c
In file included from voodoo.c:10:
/usr/include/linux/malloc.h:3: warning: #warning The Use
of linux/malloc.h is deprecated, use linux/slab.h
In file included from voodoo.c:14:
/usr/include/linux/i2c-algo-bit.h:52: warning: `struct
i2c_adapter' declared inside parameter list
/usr/include/linux/i2c-algo-bit.h:52: warning: its scope is
only this definition or declaration,
/usr/include/linux/i2c-algo-bit.h:52: warning: which is
probably not what you want.
/usr/include/linux/i2c-algo-bit.h:53: warning: `struct
i2c_adapter' declared inside parameter list
In file included from voodoo.c:17:
voodoo.h:83: warning: `struct i2c_adapter' declared
inside parameter list
voodoo.h:84: warning: `struct i2c_adapter' declared
inside parameter list
voodoo.h:113: warning: `struct pt_regs' declared inside
parameter list
voodoo.h:117: warning: `struct video_device' declared
inside parameter list
voodoo.c: In function `voodoo3_probe':
voodoo.c:56: warning: implicit declaration of function
`pci_find_device'
voodoo.c:56: warning: assignment makes pointer from
integer without a cast
voodoo.c:60: dereferencing pointer to incomplete type
voodoo.c:75: warning: assignment makes pointer from
integer without a cast
voodoo.c:79: warning: implicit declaration of function
`printk'
voodoo.c:79: `KERN_INFO' undeclared (first use in this
function)
voodoo.c:79: (Each undeclared identifier is reported only
once
voodoo.c:79: for each function it appears in.)
voodoo.c:79: parse error before string constant
voodoo.c:80: `ENODEV' undeclared (first use in this
function)
voodoo.c:83: parse error before string constant
voodoo.c:86: parse error before string constant
voodoo.c:89: dereferencing pointer to incomplete type
voodoo.c:101: warning: implicit declaration of function
`ioremap_nocache'
voodoo.c:101: dereferencing pointer to incomplete type
voodoo.c:101: warning: assignment makes pointer from
integer without a cast
voodoo.c:106: `ENOMEM' undeclared (first use in this
function)
voodoo.c:109: warning: implicit declaration of function
`ioremap'
voodoo.c:109: dereferencing pointer to incomplete type
voodoo.c:109: warning: assignment makes pointer from
integer without a cast
voodoo.c:114: warning: implicit declaration of function
`iounmap'
voodoo.c:120: dereferencing pointer to incomplete type
voodoo.c:120: dereferencing pointer to incomplete type
voodoo.c:54: warning: `subsys_id' might be used
uninitialized in this function
voodoo.c: In function `voodoo3_i2c_setup':
voodoo.c:143: warning: passing arg 1 of
`i2c_bit_add_bus' from incompatible pointer type
voodoo.c:150: warning: passing arg 1 of
`i2c_bit_add_bus' from incompatible pointer type
voodoo.c: In function `voodoo3_init':
voodoo.c:164: warning: implicit declaration of function
`kmalloc'
voodoo.c:164: `GFP_KERNEL' undeclared (first use in
this function)
voodoo.c:164: warning: assignment makes pointer from
integer without a cast
voodoo.c:166: `ENOMEM' undeclared (first use in this
function)
voodoo.c:186: `ENODEV' undeclared (first use in this
function)
voodoo.c: In function `voodoo3_cleanup':
voodoo.c:206: warning: passing arg 1 of `i2c_bit_del_bus'
from incompatible pointer type
voodoo.c:212: warning: passing arg 1 of `i2c_bit_del_bus'
from incompatible pointer type
voodoo.c:224: warning: implicit declaration of function
`kfree'
voodoo.c: At top level:
voodoo.c:234: conflicting types for `voodoo3_inc'
voodoo.h:83: previous declaration of `voodoo3_inc'
voodoo.c: In function `voodoo3_inc':
voodoo.c:235: warning: implicit declaration of function
`atomic_inc'
voodoo.c:235: union has no member named `usecount'
voodoo.c: At top level:
voodoo.c:241: conflicting types for `voodoo3_dec'
voodoo.h:84: previous declaration of `voodoo3_dec'
voodoo.c: In function `voodoo3_dec':
voodoo.c:242: warning: implicit declaration of function
`atomic_dec'
voodoo.c:242: union has no member named `usecount'
make: *** [voodoo.o] Error 1