fastoe / RTL8812BU

Realtek RTL8812BU Driver for Linux
346 stars 84 forks source link

Trouble compiling on fedora 34 (linux kernel 5.11) #13

Closed yakman2020 closed 1 year ago

yakman2020 commented 3 years ago

I'm getting several issues here. The most obvious is

  |                                 ^~~~~~

/usr/src/rtl88x2bu-5.6.1/os_dep/osdep_service.c:2247:32: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’? 2247 | set_fs(KERNEL_DS); | ^~~~~ | KERNFS_NS /usr/src/rtl88x2bu-5.6.1/os_dep/osdep_service.c: In function ‘storeToFile’: /usr/src/rtl88x2bu-5.6.1/os_dep/osdep_service.c:2284:33: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’ 2284 | oldfs = get_fs(); | ^~ /usr/src/rtl88x2bu-5.6.1/core/efuse/rtw_efuse.c: In function ‘rtw_efuse_analyze’:

I,m happy to mod the code if I know what you want here. Clearly the kernel interface has chaned.

sudoLife commented 3 years ago

@yakman2020 same here, kernel 5.12.9-1, Manjaro. lots and lots of errors of this kind. Have you figured out the right changes?

spazm-ma commented 2 years ago

New branches have been made for later kernels, for kernels >= 5.11, use the 5.8.7 branch.

https://github.com/fastoe/RTL8812BU#for-kernel-511-or-later-please-clone-the-v587-branch

try that and see if it helps.