morrownr / 88x2bu-20210702

Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets - v5.13.1
Other
976 stars 176 forks source link

changes for kernel v6.8 #205

Closed spycat88 closed 9 months ago

spycat88 commented 9 months ago

build tested against 6.8-rc3

morrownr commented 9 months ago

Merged. Thanks.

Patronos commented 9 months ago

Sorry, but this causes compile errors on 6.8-rc0 (current Fedora Rawhide)

CC [M] /home/patronos/88x2bu-20210702/os_dep/linux/os_intfs.o CC [M] /home/patronos/88x2bu-20210702/os_dep/linux/usb_intf.o /home/patronos/88x2bu-20210702/os_dep/linux/usb_intf.c:366:17: error: ‘struct usb_driver’ has no member named ‘driver’ 366 | .usbdrv.driver.shutdown = rtw_dev_shutdown, | ^~ /home/patronos/88x2bu-20210702/os_dep/linux/usb_intf.c:366:35: error: initialization of ‘const char ’ from incompatible pointer type ‘void ()(struct device *)’ [-Wincompatible-pointer-types] 366 | .usbdrv.driver.shutdown = rtw_dev_shutdown, | ^~~~ /home/patronos/88x2bu-20210702/os_dep/linux/usb_intf.c:366:35: note: (near initialization for ‘usb_drv.usbdrv.name’) make[3]: [scripts/Makefile.build:243: /home/patronos/88x2bu-20210702/os_dep/linux/usb_intf.o] Error 1 make[2]: [/usr/src/kernels/6.8.0-0.rc0.20240112git70d201a40823.5.fc40.x86_64/Makefile:1930: /home/patronos/88x2bu-20210702] Error 2 make[1]: *** [Makefile:246: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/kernels/6.8.0-0.rc0.20240112git70d201a40823.5.fc40.x86_64'

Patronos commented 9 months ago

After removing the version check for 6.8.0 from usb_intf.c Line 365 everything works again. No single warning or compile issue.

if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0))

morrownr commented 9 months ago

@Patronos

Thanks for the post. I have been too busy to check kernel 6.8 but I think I need to take a look.

@morrownr

Patronos commented 9 months ago

Just came back and wanted to report that with rc3 everthing works as expected. Fedora just build a new rc3 Kernel some hours ago. Still not in the testing repo, so I had to grab it manually. Everything compiles as expected. With rc0 it fails though.

morrownr commented 9 months ago

@Patronos

I'll confirm that it looks good on 6.8 rc3. Tested on Ubuntu.

Hey, are you interested in making PR's for 8814au and 8852bu? Those are the only 2 repos here that aren't patched yet. It would save me the time I can use on other things I need to be doing. This site really takes a lot of time.

@morrownr