tianyan5 2016-11-03 08:03 采纳率: 37.5%
浏览 2177
已结题

ubuntu14.04 网卡BCM43142 make网卡驱动的时候出现如下问题

CC [M] /usr/soft/driver/src/shared/linux_osl.o
CC [M] /usr/soft/driver/src/wl/sys/wl_linux.o
/usr/soft/driver/src/wl/sys/wl_linux.c: In function ‘wl_alloc_linux_if’:
/usr/soft/driver/src/wl/sys/wl_linux.c:1348:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
^
/usr/soft/driver/src/wl/sys/wl_linux.c:1348:8: error: ‘alloc_netdev’ undeclared (first use in this function)
dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
^
/usr/soft/driver/src/wl/sys/wl_linux.c:1348:8: note: each undeclared identifier is reported only once for each function it appears in
/usr/soft/driver/src/wl/sys/wl_linux.c: In function ‘wl_tkip_printstats’:
/usr/soft/driver/src/wl/sys/wl_linux.c:3246:7: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
wl->tkip_bcast_data[idx]);
^
/usr/soft/driver/src/wl/sys/wl_linux.c:3246:7: note: expected ‘struct seq_file ’ but argument is of type ‘char *’
/usr/soft/driver/src/wl/sys/wl_linux.c:3249:4: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
wl->tkipmodops->print_stats(debug_buf, wl->tkip_ucast_data);
^
/usr/soft/driver/src/wl/sys/wl_linux.c:3249:4: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/usr/soft/driver/src/wl/sys/wl_linux.c: In function ‘wl_reg_proc_entry’:
/usr/soft/driver/src/wl/sys/wl_linux.c:3470:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
^
/usr/soft/driver/src/wl/sys/wl_linux.c:3470:22: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
^
/usr/soft/driver/src/wl/sys/wl_linux.c:3475:16: error: dereferencing pointer to incomplete type
wl->proc_entry->read_proc = wl_proc_read;
^
/usr/soft/driver/src/wl/sys/wl_linux.c:3476:16: error: dereferencing pointer to incomplete type
wl->proc_entry->write_proc = wl_proc_write;
^
/usr/soft/driver/src/wl/sys/wl_linux.c:3477:16: error: dereferencing pointer to incomplete type
wl->proc_entry->data = wl;
^
cc1: some warnings being treated as errors
make[2]: *
* [/usr/soft/driver/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/usr/soft/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-31-generic'
make: *** [all] Error 2

  • 写回答

2条回答 默认 最新

  • devmiao 2016-11-03 14:20
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用