module_param_arrayubuntu 11.04kernel 2.6.38问题

问题描述

| 嗨,我在为
Linux
构建
uLan
驱动程序时遇到问题。 编译时出现错误:
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: ‘param_ops_char’ undeclared here (not in a function)
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: called object ‘\"\"’ is not a function
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: expected ‘)’ before string constant
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: bit-field ‘<anonymous>’ width not an integer constant
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: invalid initializer
/home/tomas/hairc/ulan-build/host/ul_drv/ul_drv/ul_linux.c:73:1: error: expected ‘,’ or ‘;’ before string constant
对于许多行来说,这是相同的错误。有代码:
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) 
module_param_array(chip,charp,&chip_specified,0); //this is line 73
module_param_array(my_adr,int,&my_adr_specified,0);
module_param_array(baud,&baud_specified,0);
module_param_array(irq,&irq_specified,0);
module_param_array(port,&port_specified,0);
module_param_array(baudbase,&baudbase_specified,0);
#if defined(UL_WITH_PCI) || defined(UL_WITH_USB)
module_param_array(slot,&slot_specified,0);
#endif
module_param(debug,0);
module_param(ul_usb_msg_inpr,0);
module_param(ulbuffer,0);
在旧版本的内核中,它可以正常运行(现在我有2.6.38)。 有人知道哪里有问题吗? 这将对我有很大帮助。 谢谢     

解决方法

        来自GIT信息库的实际更新版本已通过2.6.38成功测试。使用2.6.39及更高版本和3.0 Linux内核版本进行构建仍需要一些更新。 顺便说一句,为什么不使用标准渠道与项目开发人员进行交流(http://sourceforge.net/projects/ulan/论坛和电子邮件)?     

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...