‘struct net_device’ has no member named ‘trans_start’ ubuntu16.04
来源:互联网 发布:同花顺选股编程 编辑:程序博客网 时间:2024/05/16 08:06
编译usb-to-can_v2_socketcan,出现一下错误:
‘struct net_device’ has no member named ‘trans_start’
netdev->trans_start = jiffies;
解决办法:
打开ixx_usb_core.c 找到netdev->trans_start = jiffies;这句代码,更换成一下代码:
netdev_get_tx_queue(netdev,0)->trans_start = jiffies;
出现这个问题的原因可能是,linux内核版本不相同,Linux 4.10内核的netdevice结构重新编写了的,与以前的很不一样.
我的linux版本为:Linux robot-GL502VML 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
查看版本命令:uname -a
阅读全文
0 0
- ‘struct net_device’ has no member named ‘trans_start’ ubuntu16.04
- error: ‘struct device’ has no member named ‘bus_id’
- error: ‘struct device’ has no member named ‘bus_id’
- error: 'struct passwd' has no member named 'pw_comment'
- error: 'struct proc_dir_entry' has no member named 'owner'的解决方法
- error: ‘struct hostent’ has no member named ‘h_addr’
- error: ‘struct dentry’ has no member named ‘d_count’
- ushare编译之 ‘struct sockaddr_storage’ has no member named ‘s_addr’
- error: 'struct proc_dir_entry' has no member named 'owner'的解决方法
- error: ‘struct hostent’ has no member named ‘h_addr’
- 移植2.6.31遇到的问题(1):'struct uart_info' has no member named 'tty'
- 移植2.6.31遇到的问题(2):'struct device' has no member named 'bus_id'
- ubuntu-13.10安装vmware tools报struct dentry’ has no member named ‘d_count错,修正方法
- php5.4.26 安装出现 error: ‘struct gdIOCtx’ has no member named ‘data’
- 虚拟机安装vmtools 共享文件夹失败 错误:error: ‘struct dentry’ has no member named ‘d_alias’
- VMware 共享文件夹 error: ‘struct dentry’ has no member named ‘d_alias’
- Android之error: 'const struct JNINativeInterface' has no member named 'callVoidMethod'
- 'class QApplication' has no member named 'setMainWidget'
- LightOJ-1220
- 几种常用加密算法比较
- The value for the useBean class attribute XXX is invalid 异常解释
- 一些不错的学习网站
- Go实战--golang中使用图片和验证码(dchest/captcha)
- ‘struct net_device’ has no member named ‘trans_start’ ubuntu16.04
- IIS应用程序池自动回收问题的有效解决办法
- 导出word如何默认打开为页面视图
- 卧槽!原来“俄分”是这样分化美国社会的!
- mongodb 实现添加新字段(使用更新操作)
- 【OpenCV】腐蚀膨胀
- android和ios GoogleMap画导航线路图路径规划(Directions)
- 空格替换Java实现
- 图片框架2(复杂)