我尝试安装 endendm 和 tomaspinho 驱动程序,完成 make 后出现相同的错误:
/home/wjm/Templates/rtl8821ce-git20190810/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/home/wjm/Templates/rtl8821ce-git20190810/os_dep/linux/rtw_android.c:665:49: error: macro "access_ok" requires 3 arguments, but only 2 given
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
/home/wjm/Templates/rtl8821ce-git20190810/os_dep/linux/rtw_android.c:665:7: error: ‘access_ok’ undeclared (first use in this function)
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
^~~~~~~~~
/home/wjm/Templates/rtl8821ce-git20190810/os_dep/linux/rtw_android.c:665:7: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/usr/src/linux-headers-4.19.0-5-common/scripts/Makefile.build:309:/home/wjm/Templates/rtl8821ce-git20190810/os_dep/linux/rtw_android.o] error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-5-common/Makefile:1539:_module_/home/wjm/Templates/rtl8821ce-git20190810] error 2
make[2]: *** [Makefile:146:sub-make] error 2
make[1]: *** [Makefile:8:all] error 2
make[1]: leave “/usr/src/linux-headers-4.19.0-5-amd64”
make: *** [Makefile:2237:modules] error 2
有什么帮助吗?