brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.61k stars 467 forks source link

Unable to build with kernel 5.19.2 #213

Open marcleonio opened 1 year ago

marcleonio commented 1 year ago

CC [M] /home/mark/git/rtl8821CU/os_dep/osdep_service.o /home/mark/git/rtl8821CU/os_dep/osdep_service.c: In function ‘rtw_change_ifname’: /home/mark/git/rtl8821CU/os_dep/osdep_service.c:2494:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2494 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); | ~~~~~~~^~~~~~~~~~ /home/mark/git/rtl8821CU/os_dep/osdep_service.c:925:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 925 | void _rtw_memcpy(void *dst, const void *src, u32 sz) | ~~~~~~^~~ CC [M] /home/mark/git/rtl8821CU/os_dep/linux/os_intfs.o CC [M] /home/mark/git/rtl8821CU/os_dep/linux/usb_intf.o CC [M] /home/mark/git/rtl8821CU/os_dep/linux/usb_ops_linux.o CC [M] /home/mark/git/rtl8821CU/os_dep/linux/ioctl_linux.o /home/mark/git/rtl8821CU/os_dep/linux/ioctl_linux.c: In function ‘rtw_mp_efuse_set’: /home/mark/git/rtl8821CU/os_dep/linux/ioctl_linux.c:9781:46: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 9781 | _rtw_memcpy(padapter->pnetdev->dev_addr, get_hal_mac_addr(padapter), ETH_ALEN); /* set mac addr to net_device */ | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/mark/git/rtl8821CU/include/drv_types.h:27, from /home/mark/git/rtl8821CU/os_dep/linux/ioctl_linux.c:17: /home/mark/git/rtl8821CU/include/osdep_service.h:296:35: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 296 | extern void _rtw_memcpy(void *dec, const void *sour, u32 sz); | ~~~~~~^~~ CC [M] /home/mark/git/rtl8821CU/os_dep/linux/xmit_linux.o CC [M] /home/mark/git/rtl8821CU/os_dep/linux/mlme_linux.o CC [M] /home/mark/git/rtl8821CU/os_dep/linux/recv_linux.o CC [M] /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.o /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’: /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:420:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’ 420 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/mark/git/rtl8821CU/include/osdep_service_linux.h:93, from /home/mark/git/rtl8821CU/include/osdep_service.h:50, from /home/mark/git/rtl8821CU/include/drv_types.h:27, from /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:17: ./include/net/cfg80211.h:7967:6: note: declared here 7967 | void cfg80211_ch_switch_notify(struct net_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: At top level: /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9416:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types] 9416 | .stop_ap = cfg80211_rtw_stop_ap, | ^~~~~~~~~~~~~~~~~~~~ /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9416:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’) /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’: /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9682:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’ 9682 | if (wdev->current_bss) { | ^~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:257: /home/mark/git/rtl8821CU/os_dep/linux/ioctl_cfg80211.o] Erro 1 make[1]: *** [Makefile:1850: /home/mark/git/rtl8821CU] Erro 2 make[1]: Saindo do diretório '/usr/src/linux-headers-5.19.0-32-generic' make: *** [Makefile:2217: modules] Erro 2

        .-/+oossssoo+/-.               mark@mark-desktop 
    `:+ssssssssssssssssss+:`           ----------------- 
  -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04.2 LTS x86_64 
.ossssssssssssssssssdMMMNysssso.       Kernel: 5.19.0-32-generic 

/ssssssssssshdmmNNmmyNMMMMhssssss/ Uptime: 3 hours, 29 mins +ssssssssshmydMMMMMMMNddddyssssssss+ Packages: 2691 (dpkg), 27 (snap) /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Shell: bash 5.1.16 .ssssssssdMMMNhsssssssssshNMMMdssssssss. Resolution: 1920x1080 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ DE: GNOME 42.5 ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM Theme: Adwaita +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Theme: Yaru [GTK2/3] .ssssssssdMMMNhsssssssssshNMMMdssssssss. Icons: Yaru [GTK2/3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Terminal: gnome-terminal +sssssssssdmydMMMMMMMMddddyssssssss+ CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz /ssssssssssshdmNNNNmyNMMMMhssssss/ GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590 .ossssssssssssssssssdMMMNysssso. Memory: 3006MiB / 32028MiB -+sssssssssssssssssyyyssss+- :+ssssssssssssssssss+:
.-/+oossssoo+/-.

It worked perfectly yesterday

gukandrew commented 1 year ago

same here