错误:error: void value not ignored as it ought to be
具体如下:
查找对应的37位置所在的代码
我们查找该函数的所在文件.
在linux/fs.h头文件,里面定义了unregister_chrdev()函数:
对void类型函数进行取值,所以报错.
我们将其改为:
再编译即可通过.
错误:error: void value not ignored as it ought to be
具体如下:
我们查找该函数的所在文件.
在linux/fs.h头文件,里面定义了unregister_chrdev()函数:
我们将其改为: