系统:centos 5
kernel:Linux gateway 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux
make时报如下错误,源文件在附件中
[root@gateway ch341]# make
make -C /lib/modules/2.6.18-53.el5/build SUBDIRS=/root/ch341 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-53.el5-i686'
CC [M] /root/ch341/ch341.o
/root/ch341/ch341.c:258: warning: 'struct ktermios' declared inside parameter list
/root/ch341/ch341.c:258: warning: its scope is only this definition or declaration, which is probably not what you want
/root/ch341/ch341.c: In function 'ch341_set_termios':
/root/ch341/ch341.c:273: error: dereferencing pointer to incomplete type
/root/ch341/ch341.c: At top level:
/root/ch341/ch341.c:317: error: unknown field 'usb_driver' specified in initializer
/root/ch341/ch341.c:317: warning: initialization makes integer from pointer without a cast
/root/ch341/ch341.c:317: error: initializer element is not computable at load time
/root/ch341/ch341.c:317: error: (near initialization for 'ch341_device.num_interrupt_in')
/root/ch341/ch341.c:323: warning: initialization from incompatible pointer type
make[2]: *** [/root/ch341/ch341.o] Error 1
make[1]: *** [_module_/root/ch341] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.el5-i686'
make: *** [default] Error 2