首页 > 学院 > 开发设计 > 正文

驱动模块编译错误提示--implicit declaration of function ‘kmalloc’

2019-11-08 02:23:43
字体:
来源:转载
供稿:网友

驱动模块编译时出现如下错误:

error: implicit declaration of function ‘kmalloc’

error: implicit declaration of function ‘kfree’

解决办法:

添加如下头文件即可: #include <linux/slab.h>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表