make -C /lib/modules/2.6.32-24-generic/build M=/home/gabrielcik/stick
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
CC [M] /home/gabrielcik/stick/host/r592.o
/home/gabrielcik/stick/host/r592.c: In function ‘r592_probe’:
/home/gabrielcik/stick/host/r592.c:768: error: incompatible type for argument 1 of ‘dma_alloc_from_coherent’
include/asm-generic/dma-coherent.h:9: note: expected ‘struct device *’ but argument is of type ‘struct device’
/home/gabrielcik/stick/host/r592.c:768: warning: passing argument 4 of ‘dma_alloc_from_coherent’ from incompatible pointer type
include/asm-generic/dma-coherent.h:9: note: expected ‘void **’ but argument is of type ‘int *’
make[3]: *** [/home/gabrielcik/stick/host/r592.o] Error 1
make[2]: *** [/home/gabrielcik/stick/host] Error 2
make[1]: *** [_module_/home/gabrielcik/stick] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic'
make: *** [build] Error 2
I tried to do "make" but i get this error:
make -C /lib/modules/ 2.6.32- 24-generic/ build M=/home/ gabrielcik/ stick linux-headers- 2.6.32- 24-generic' k/stick/ host/r592. o k/stick/ host/r592. c: In function ‘r592_probe’: k/stick/ host/r592. c:768: error: incompatible type for argument 1 of ‘dma_alloc_ from_coherent’ asm-generic/ dma-coherent. h:9: note: expected ‘struct device *’ but argument is of type ‘struct device’ k/stick/ host/r592. c:768: warning: passing argument 4 of ‘dma_alloc_ from_coherent’ from incompatible pointer type asm-generic/ dma-coherent. h:9: note: expected ‘void **’ but argument is of type ‘int *’ gabrielcik/ stick/host/ r592.o] Error 1 gabrielcik/ stick/host] Error 2 /home/gabrielci k/stick] Error 2 linux-headers- 2.6.32- 24-generic'
make[1]: Entering directory `/usr/src/
CC [M] /home/gabrielci
/home/gabrielci
/home/gabrielci
include/
/home/gabrielci
include/
make[3]: *** [/home/
make[2]: *** [/home/
make[1]: *** [_module_
make[1]: Leaving directory `/usr/src/
make: *** [build] Error 2
What to do?
I use Ubuntu 10.04 on a Vaio W. Thank you!