smlinux / rtl8723de

Realtek RTL8723DE module for Linux
GNU General Public License v2.0
260 stars 126 forks source link

Linux Kernel 5.0.x Build Error #40

Closed ghost closed 5 years ago

ghost commented 5 years ago

In 4.19 and 4.20 just works, but when I tried in 5.0.x this happens:

/home/admin/downloads/rtl8723de-4.15-up/os_dep/linux/rtw_android.c: In the 'rtw_android_priv_cmd' function:
/home/admin/downloads/rtl8723de-4.15-up/os_dep/linux/rtw_android.c:629:62: error: the macro «access_ok» passed 3 arguments, but only takes 2
  if (! access_ok (VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
                                                              ^
/home/admin/downloads/rtl8723de-4.15-up/os_dep/linux/rtw_android.c:629:7: error: 'access_ok' was not declared here (first use in this function)
  if (! access_ok (VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
       ^ ~~~~~~~~
/home/admin/downloads/rtl8723de-4.15-up/os_dep/linux/rtw_android.c:629:7: note: each unclaimed identifier is reported only once for each function in which it appears
make [2]: *** [scripts / Makefile.build: 277: /home/admin/downloads/rtl8723de-4.15-up/os_dep/linux/rtw_android.o] Error 1
make [1]: *** [Makefile: 1553: _module_ / home / admin / Downloads / rtl8723de-4.15-up] Error 2
make [1]: it leaves the directory '/usr/lib/modules/5.0.5-1-MANJARO/build'
make: *** [Makefile: 1885: modules] Error 2

What i'm doing wrong?

gavindsouza commented 5 years ago

Change the git branch to 5.0-up before running the commands in the README check this for the ref branch