天嵌 ARM开发社区

 找回密码
 注册
查看: 2546|回复: 7

求助关于wifi驱动程序的编译

[复制链接]
yaowenjun 发表于 2011-12-24 12:08:22 | 显示全部楼层 |阅读模式
我用天嵌提供的系统及4.3.3的编译器编译我手头的一个wifi驱动程序,想生成.ko文件。但是出现下面的错误,实在解决不了啊,求助管理员帮帮忙给指点一下,谢谢。
[root@localhost s3c_wifi_v4]# make
make -C /home/ywj/opt/EmbedSky/linux-2.6.30.4 M=/home/ywj/opt/EmbedSky/s3c_wifi_v4 modules
make[1]: Entering directory `/home/ywj/opt/EmbedSky/linux-2.6.30.4'
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/io/gspi/s3c2440/gspi_io.o
/home/ywj/opt/EmbedSky/s3c_wifi_v4/io/gspi/s3c2440/gspi_io.c: In function 'gspi_register_irq':
/home/ywj/opt/EmbedSky/s3c_wifi_v4/io/gspi/s3c2440/gspi_io.c:364: warning: passing argument 2 of 'request_irq' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/io/gspi/s3c2440/gspi_io.c: In function 'gspihost_init_hw':
/home/ywj/opt/EmbedSky/s3c_wifi_v4/io/gspi/s3c2440/gspi_io.c:480: warning: control reaches end of non-void function
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/io/gspi/s3c2440/gspi_debug.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_main.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_fw.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_wext.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_rx.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_tx.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_cmd.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_cmdresp.o
  CC [M]  /home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.o
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c: In function 'wlan_get_scan':
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2019: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2019: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2019: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2019: error: too few arguments to function 'iwe_stream_add_event'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2033: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2033: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2033: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2033: error: too few arguments to function 'iwe_stream_add_point'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2039: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2039: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2039: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2039: error: too few arguments to function 'iwe_stream_add_event'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2046: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2046: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2046: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2046: error: too few arguments to function 'iwe_stream_add_event'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2076: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2076: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2076: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2076: error: too few arguments to function 'iwe_stream_add_event'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2087: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2087: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2087: error: too few arguments to function 'iwe_stream_add_point'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2112: warning: passing argument 1 of 'iwe_stream_add_value' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2112: warning: passing argument 4 of 'iwe_stream_add_value' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2112: warning: passing argument 5 of 'iwe_stream_add_value' makes pointer from integer without a cast
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2112: error: too few arguments to function 'iwe_stream_add_value'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2123: warning: passing argument 1 of 'iwe_stream_add_value' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2123: warning: passing argument 4 of 'iwe_stream_add_value' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2123: warning: passing argument 5 of 'iwe_stream_add_value' makes pointer from integer without a cast
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2123: error: too few arguments to function 'iwe_stream_add_value'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2154: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2154: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2154: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2154: error: too few arguments to function 'iwe_stream_add_point'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2182: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2182: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2182: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2182: error: too few arguments to function 'iwe_stream_add_point'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2203: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2203: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2203: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2203: error: too few arguments to function 'iwe_stream_add_point'
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2220: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2220: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2220: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.c:2220: error: too few arguments to function 'iwe_stream_add_point'
make[2]: *** [/home/ywj/opt/EmbedSky/s3c_wifi_v4/wlan/wlan_scan.o] Error 1
make[1]: *** [_module_/home/ywj/opt/EmbedSky/s3c_wifi_v4] Error 2
make[1]: Leaving directory `/home/ywj/opt/EmbedSky/linux-2.6.30.4'
make: *** [default] Error 2
[root@localhost s3c_wifi_v4]#

TQ-lkp 发表于 2011-12-24 13:04:24 | 显示全部楼层
驱动哪来的?好像是挺多语法错误的
 楼主| yaowenjun 发表于 2011-12-26 08:55:49 | 显示全部楼层
本帖最后由 yaowenjun 于 2011-12-26 10:04 编辑

从网上下载的一个驱动,错误基本是error: too few arguments to function,我弄不了。希望楼主能帮我解决一下,谢谢!
 楼主| yaowenjun 发表于 2011-12-26 10:43:38 | 显示全部楼层
本帖最后由 yaowenjun 于 2011-12-26 10:44 编辑

要不我把代码发上来,给大家看看。楼主能给个回复吗?
亚瑟王 发表于 2011-12-30 10:26:37 | 显示全部楼层
你的那个驱动中的iwe_stream_add_value缺少成员,你在内核的头文件中查找一下类似的结构体,看两者相差多少,然后进行修改。
 楼主| yaowenjun 发表于 2012-1-13 11:45:45 | 显示全部楼层
虽然现在不做这个了,但还是谢谢楼主的帮忙。
亚瑟王 发表于 2012-2-3 18:04:13 | 显示全部楼层
亲,那我把这个帖子改成已解决,如何?
172696613 发表于 2012-10-2 14:55:37 | 显示全部楼层
走过,,,,,,,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-5 08:28 , Processed in 1.038126 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表