编译linux内核遇到的问题

问题一:
编译linux内核(OK210),多个地方出现这个问题:
error: too few arguments to function 'mmc_suspend_host'
网上查了下mmc_suspend_host函数原型:
http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=28685940&id=3889878

缺少第二个参数 pm_message_t  state  因此只需要根据调用函数补上即可。

一般就是state 。



问题二:

error: implicit declaration of function 'kzalloc'
error: implicit declaration of function 'kfree'


添加 #include <linux/slab.h>


问题三:

drivers/scsi/advansys.c:8376: error: implicit declaration of function 'dma_cache_sync'

打开文件找到dma_cache_sync ,直接注释就行了。

参考:http://bbs.chinaunix.net/thread-3645559-1-1.html


问题四:

drivers/scsi/ipr.c:654: error: implicit declaration of function 'writeq'

应该可能在linux/slab.h 在没有定义 也有人说这个bug 

https://bugzilla.kernel.org/show_bug.cgi?id=17822


暂时没解决这个问题,直接在配置里把scsi全关了。。

可能解决的办法是更新linux库?

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值