内容目录
编译内核模块出现以下错误:
error: implicit declaration of function ‘copy_from_user’ [-Werror=implicit-function-declaration]
解决办法:
添加头文件: #include <linux/uaccess.h>
原因:
asm/uaccess.h does not have copy_to_user on kernel > 4.11.
https://github.com/raspberrypi/linux/commit/d597580d373774b1bdab84b3d26ff0b55162b916
打赏作者