内核error: implicit declaration of function 'irq_to_gpio'

gdrocky1989 gdrocky1989 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
arm构架的板子,内核版本linux-2.6.38.8
编译的时候出错内容如下
drivers/mfd/ezx-pcap.c:213: error: implicit declaration of function 'irq_to_gpio'
make[2]: *** [drivers/mfd/ezx-pcap.o] 错误 1
make[1]: *** [drivers/mfd] 错误 2
make: *** [drivers] 错误 2


irq_to_gpio函数在linux-2.6.38.8/include/linux/gpio.h中定义
进入/drivers/mfd/ezx-pcap.c中发现有 include <linux/gpio.h>



如何破?
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
gdrocky1989
Linux_Kernel 4,469 成员 17,458 内容