Chinaunix首页 | 论坛 | 博客
  • 博客访问: 555404
  • 博文数量: 127
  • 博客积分: 1169
  • 博客等级: 少尉
  • 技术积分: 1298
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-16 14:29
个人简介

空白

文章分类

全部博文(127)

分类: LINUX

2015-12-01 09:52:57

linux内核:linux-2.6.30.4

编译驱动提示如下错误:
error: implicit declaration of function 'class_create'
error: implicit declaration of function 'class_device_create'
error: implicit declaration of function 'class_device_unregister'
error: implicit declaration of function 'class_destroy'

原因:
class_create, class_device_create,class_device_unregister,class_destroy是早期内核版本的API
现在已经改成device_create 和 device_destroy

阅读(4008) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~