implicit declaration of function 'copy_from_user'

内核中使用copy_from_user()和copy_to_user()函数,编译出现错误:

    implicit declaration of function 'copy_from_user'

需要添加头文件:

    #include <linux/uaccess.h>
原文地址:https://www.cnblogs.com/helloworldtoyou/p/5530476.html