- 论坛徽章:
- 0
|
我有一块3ware 9650se sata 2 raid controller 的raid卡,我要装redhat as 4但只找到了原代码的驱动.原代码文件有:
3w-9xxx.c
3w-9xxx.h
Makefile
我另外一台redhat as 4 kernel 2.6.9-22的机器上编译这个原代码,但是报以下错,这是怎么会事???:
[root@localhost driver]# make
make V=1 -I/lib/modules/2.6.9-22.ELsmp/source/drivers/scsi -C /lib/modules/2.6.9-22.ELsmp/source SUBDIRS=/root/3ware/driver modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
mkdir -p /root/3ware/driver/.tmp_versions
make -f scripts/Makefile.build obj=/root/3ware/driver
gcc -Wp,-MD,/root/3ware/driver/.3w-9xxx.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -I/lib/modules/2.6.9-22.ELsmp/source/drivers/scsi -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -g -Wdeclaration-after-statement -pipe -msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mregparm=3 -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -DMODULE -DKBUILD_BASENAME=3w_9xxx -DKBUILD_MODNAME=3w_9xxx -c -o /root/3ware/driver/.tmp_3w-9xxx.o /root/3ware/driver/3w-9xxx.c
In file included from /root/3ware/driver/3w-9xxx.c:93:
/root/3ware/driver/3w-9xxx.h:675: error: field `ioctl_lock' has incomplete type
/root/3ware/driver/3w-9xxx.c: In function `twa_chrdev_ioctl':
/root/3ware/driver/3w-9xxx.c:641: warning: implicit declaration of function `mutex_lock_interruptible'
/root/3ware/driver/3w-9xxx.c:1185:32: macro "mutex_init" requires 3 arguments, but only 1 given
/root/3ware/driver/3w-9xxx.c: In function `twa_initialize_device_extension':
/root/3ware/driver/3w-9xxx.c:1185: error: `mutex_init' undeclared (first use in this function)
/root/3ware/driver/3w-9xxx.c:1185: error: (Each undeclared identifier is reported only once
/root/3ware/driver/3w-9xxx.c:1185: error: for each function it appears in.)
/root/3ware/driver/3w-9xxx.c: In function `twa_scsi_eh_reset':
/root/3ware/driver/3w-9xxx.c:1742: warning: implicit declaration of function `sdev_printk'
/root/3ware/driver/3w-9xxx.c:1747:32: macro "mutex_lock" requires 2 arguments, but only 1 given
/root/3ware/driver/3w-9xxx.c:1747: error: `mutex_lock' undeclared (first use in this function)
/root/3ware/driver/3w-9xxx.c: At top level:
/root/3ware/driver/3w-9xxx.c:2038: error: unknown field `change_queue_depth' specified in initializer
/root/3ware/driver/3w-9xxx.c:2038: warning: initialization from incompatible pointer type
/root/3ware/driver/3w-9xxx.c:2237: error: unknown field `shutdown' specified in initializer
/root/3ware/driver/3w-9xxx.c:2238: warning: initialization from incompatible pointer type
make[2]: *** [/root/3ware/driver/3w-9xxx.o] Error 1
make[1]: *** [_module_/root/3ware/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
make: *** [default] Error 2 |
|