|
在linux下面安装摄像头驱动程序u,遇到一个错误,不知道如何修改,请教以下
[root@ltyl spca5xx-20050109]# make
Compiling drivers/usb/spcadecoder.c
Compiling drivers/usb/spca50x.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
from drivers/usb/spca50x.c:44:
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type
`void *' used in arithmetic
drivers/usb/spca50x.c: In function `spca50x_mmap':
drivers/usb/spca50x.c:4901: warning: passing arg 1 of `remap_page_range_R2baf18f
2' makes pointer from integer without a cast
drivers/usb/spca50x.c:4901: incompatible type for argument 4 of `remap_page_rang
e_R2baf18f2'
drivers/usb/spca50x.c:4901: too few arguments to function `remap_page_range_R2ba
f18f2'
make: *** [drivers/usb/spca50x.o] Error 1
后来换了高版本的依然有错误
[root@ltyl spca5xx-20060501]# make
Compiling drivers/usb/spcadecoder.c
Compiling drivers/usb/spca5xx.c
In file included from /lib/modules/2.4.20-8/build/include/linux/vmalloc.h:8,
from drivers/usb/spca5xx.c:46:
/lib/modules/2.4.20-8/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.20-8/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
drivers/usb/spca5xx.c: In function `spca50x_read_proc':
drivers/usb/spca5xx.c:1096: structure has no member named `seq'
drivers/usb/spca5xx.c: In function `spca5xx_mmap':
drivers/usb/spca5xx.c:3235: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
drivers/usb/spca5xx.c:3235: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c:3235: too few arguments to function `remap_page_range_R2baf18f2'
drivers/usb/spca5xx.c: At top level:
drivers/usb/spca5xx.c:3280: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5655: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5656: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5657: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5658: warning: braces around scalar initializer
drivers/usb/spca5xx.c:5658: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:5658: warning: excess elements in scalar initializer
drivers/usb/spca5xx.c:5658: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:150: warning: `bright' defined but not used
drivers/usb/spca5xx.c:151: warning: `contrast' defined but not used
make: *** [drivers/usb/spca5xx.o] Error 1
如何修改阿 谢谢 |
|