The officially official Devuan Forum!

You are not logged in.

#2 Re: Devuan » Can't use MAKE command driver for installation » 2025-07-09 19:26:42

I blacklisted the driver per the driver given via lshw -C network: r8169.  There was no blacklist.conf file so I created one by making a txt file, adding the only line 'blacklist r8169' and saving it as blacklist-r8169.conf in the modprobe.d folder. 

I then resumed once again MAKE, errors remain, albeit shorter.  Unable to execute MAKE INSTALL.  No useful results on search engine for the errors given "linux rtl driver pci_dma_sync_single_for_device" or "linux rtl driver. 

Any suggestions?

Do I need to make blacklist-r8169.conf executable? I see blacklist hash error at boot, however, search engine stated it was normal for disabled secure boot.  Do I need to get A.I. involved in this? 

If we work together, I think we can resolve the issue.

-Combo

P.S. I hope some humor is agreeable.

[root@devuan1611:~/rtl8852be# make
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-35-amd64'
  CC [M]  /root/rtl8852be/platform/platform_linux_pc_pci.o
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_wback’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:21:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
   21 |                 pci_dma_sync_single_for_device(hwdev, *bus_addr, size,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 dma_sync_single_for_device
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_inv’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:30:17: error: implicit declaration of function ‘pci_dma_sync_single_for_cpu’; did you mean ‘dma_sync_single_for_cpu’? [-Werror=implicit-function-declaration]
   30 |                 pci_dma_sync_single_for_cpu(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 dma_sync_single_for_cpu
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_get_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:39:29: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
   39 |                 *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
      |                             ^~~~~~~~~~~~~~
      |                             dma_map_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
   50 |                 pci_unmap_single(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~
      |                 dma_unmap_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
   97 |                 pci_free_consistent(pdev, size, vir_addr, *bus_addr);
      |                 ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-35-common/Makefile:2038: /root/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-35-amd64'
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# make install
install -p -m 644 8852be.ko  /lib/modules/6.1.0-35-amd64/kernel/drivers/net/wireless/
install: cannot stat '8852be.ko': No such file or directory
make: *** [Makefile:646: install] Error 1

#4 Devuan » Can't use MAKE command driver for installation » 2025-07-09 00:50:37

comborico1611
Replies: 15

Trying to install wifi driver (Realtek RTL8852) from Github for Lenovo Thinkpad E16.  I'm running Daedalus 5.0.1 amd64 XFCE.  I am stuck at MAKE command getting the following errors.  Not sure how to proceed.

 comborico1611@devuan1611:~$ su -
Password: 
root@devuan1611:~# cd rt8852be
-bash: cd: rt8852be: No such file or directory
root@devuan1611:~# git clone [url]https://github.com/HRex39/rtl8852be.git[/url]
fatal: destination path 'rtl8852be' already exists and is not an empty directory.
root@devuan1611:~# cd rtl8852be
root@devuan1611:~/rtl8852be# make -j8
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be  modules
make[1]: *** /lib/modules/6.1.0-35-amd64/build: No such file or directory.  Stop.
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# apt update
Hit:1 [url]http://deb.devuan.org/merged[/url] daedalus InRelease
Hit:2 [url]https://brave-browser-apt-release.s3.brave.com[/url] stable InRelease     
Reading package lists... Done                                            
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@devuan1611:~/rtl8852be# ^C
root@devuan1611:~/rtl8852be# apt install make gcc linux-headers-$(uname -r) build-essential git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
make is already the newest version (4.3-4.1).
make set to manually installed.
gcc is already the newest version (4:12.2.0-3).
gcc set to manually installed.
build-essential is already the newest version (12.9).
git is already the newest version (1:2.39.5-0+deb12u2).
The following packages were automatically installed and are no longer required:
  libwpe-1.0-1 libwpebackend-fdo-1.0-1
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  linux-compiler-gcc-12-x86 linux-headers-6.1.0-35-common linux-kbuild-6.1
The following NEW packages will be installed:
  linux-compiler-gcc-12-x86 linux-headers-6.1.0-35-amd64
  linux-headers-6.1.0-35-common linux-kbuild-6.1
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.0 MB of archives.
After this operation, 65.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 [url]http://deb.devuan.org/merged[/url] daedalus/main amd64 linux-compiler-gcc-12-x86 amd64 6.1.137-1 [992 kB]
Get:2 [url]http://deb.devuan.org/merged[/url] daedalus/main amd64 linux-headers-6.1.0-35-common all 6.1.137-1 [10.2 MB]
Get:3 [url]http://deb.devuan.org/merged[/url] daedalus/main amd64 linux-kbuild-6.1 amd64 6.1.137-1 [1,250 kB]
Get:4 [url]http://deb.devuan.org/merged[/url] daedalus/main amd64 linux-headers-6.1.0-35-amd64 amd64 6.1.137-1 [1,523 kB]
Fetched 14.0 MB in 14s (1,027 kB/s)                                            
Selecting previously unselected package linux-compiler-gcc-12-x86.
(Reading database ... 132689 files and directories currently installed.)
Preparing to unpack .../linux-compiler-gcc-12-x86_6.1.137-1_amd64.deb ...
Unpacking linux-compiler-gcc-12-x86 (6.1.137-1) ...
Selecting previously unselected package linux-headers-6.1.0-35-common.
Preparing to unpack .../linux-headers-6.1.0-35-common_6.1.137-1_all.deb ...
Unpacking linux-headers-6.1.0-35-common (6.1.137-1) ...
Selecting previously unselected package linux-kbuild-6.1.
Preparing to unpack .../linux-kbuild-6.1_6.1.137-1_amd64.deb ...
Unpacking linux-kbuild-6.1 (6.1.137-1) ...
Selecting previously unselected package linux-headers-6.1.0-35-amd64.
Preparing to unpack .../linux-headers-6.1.0-35-amd64_6.1.137-1_amd64.deb ...
Unpacking linux-headers-6.1.0-35-amd64 (6.1.137-1) ...
Setting up linux-compiler-gcc-12-x86 (6.1.137-1) ...
Setting up linux-kbuild-6.1 (6.1.137-1) ...
Setting up linux-headers-6.1.0-35-common (6.1.137-1) ...
Setting up linux-headers-6.1.0-35-amd64 (6.1.137-1) ...
root@devuan1611:~/rtl8852be# make -j8
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-35-amd64'
  CC [M]  /root/rtl8852be/platform/platform_linux_pc_pci.o
  CC [M]  /root/rtl8852be/os_dep/osdep_service.o
  CC [M]  /root/rtl8852be/os_dep/osdep_service_linux.o
  CC [M]  /root/rtl8852be/os_dep/linux/rtw_cfg.o
  CC [M]  /root/rtl8852be/os_dep/linux/os_intfs.o
  CC [M]  /root/rtl8852be/os_dep/linux/ioctl_linux.o
  CC [M]  /root/rtl8852be/os_dep/linux/xmit_linux.o
  CC [M]  /root/rtl8852be/os_dep/linux/mlme_linux.o
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_change_ifname’:
/root/rtl8852be/os_dep/osdep_service_linux.c:810:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  810 |         _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
      |                     ~~~~~~~^~~~~~~~~~
/root/rtl8852be/os_dep/osdep_service_linux.c:48:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
   48 | void _rtw_memcpy(void *dst, const void *src, u32 sz)
      |                  ~~~~~~^~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_net_set_mac_address’:
/root/rtl8852be/os_dep/linux/os_intfs.c:79:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   79 |         _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
      |                     ~~~~~~~^~~~~~~~~~
In file included from /root/rtl8852be/include/drv_types.h:25,
                 from /root/rtl8852be/os_dep/linux/os_intfs.c:17:
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
      |                  ~~~~~~^~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_ndev_init’:
/root/rtl8852be/os_dep/linux/os_intfs.c:294:9: error: too many arguments to function ‘netif_napi_add’
  294 |         netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
      |         ^~~~~~~~~~~~~~
In file included from /root/rtl8852be/include/osdep_service_linux.h:31,
                 from /root/rtl8852be/include/osdep_service.h:42:
/usr/src/linux-headers-6.1.0-35-common/include/linux/netdevice.h:2593:1: note: declared here
 2593 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
      | ^~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/root/rtl8852be/os_dep/linux/os_intfs.c:623:25: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  623 |         _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
      |                     ~~~~^~~~~~~~~~
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
      |                  ~~~~~~^~~
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_random32’:
/root/rtl8852be/os_dep/osdep_service_linux.c:850:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
  850 |         return prandom_u32();
      |                ^~~~~~~~~~~
      |                prandom_u32_max
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/osdep_service_linux.o] Error 1
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_wback’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:21:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
   21 |                 pci_dma_sync_single_for_device(hwdev, *bus_addr, size,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 dma_sync_single_for_device
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_inv’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:30:17: error: implicit declaration of function ‘pci_dma_sync_single_for_cpu’; did you mean ‘dma_sync_single_for_cpu’? [-Werror=implicit-function-declaration]
   30 |                 pci_dma_sync_single_for_cpu(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 dma_sync_single_for_cpu
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_get_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:39:29: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
   39 |                 *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
      |                             ^~~~~~~~~~~~~~
      |                             dma_map_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
   50 |                 pci_unmap_single(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~
      |                 dma_unmap_single
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
   97 |                 pci_free_consistent(pdev, size, vir_addr, *bus_addr);
      |                 ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-35-common/Makefile:2038: /root/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-35-amd64'
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libwpe-1.0-1 libwpebackend-fdo-1.0-1
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 186 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 149229 files and directories currently installed.)
Removing libwpebackend-fdo-1.0-1:amd64 (1.14.2-1) ...
Removing libwpe-1.0-1:amd64 (1.14.0-1) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
root@devuan1611:~/rtl8852be# make -j8
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-35-amd64/build M=/root/rtl8852be  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-35-amd64'
  CC [M]  /root/rtl8852be/platform/platform_linux_pc_pci.o
  CC [M]  /root/rtl8852be/os_dep/osdep_service_linux.o
  CC [M]  /root/rtl8852be/os_dep/linux/os_intfs.o
  CC [M]  /root/rtl8852be/os_dep/linux/recv_linux.o
  CC [M]  /root/rtl8852be/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /root/rtl8852be/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /root/rtl8852be/os_dep/linux/wifi_regd.o
  CC [M]  /root/rtl8852be/os_dep/linux/rtw_android.o
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_change_ifname’:
/root/rtl8852be/os_dep/osdep_service_linux.c:810:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  810 |         _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
      |                     ~~~~~~~^~~~~~~~~~
/root/rtl8852be/os_dep/osdep_service_linux.c:48:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
   48 | void _rtw_memcpy(void *dst, const void *src, u32 sz)
      |                  ~~~~~~^~~
/root/rtl8852be/os_dep/osdep_service_linux.c: In function ‘rtw_random32’:
/root/rtl8852be/os_dep/osdep_service_linux.c:850:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
  850 |         return prandom_u32();
      |                ^~~~~~~~~~~
      |                prandom_u32_max
/root/rtl8852be/os_dep/linux/wifi_regd.c: In function ‘rtw_regd_init’:
/root/rtl8852be/os_dep/linux/wifi_regd.c:697:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function)
  697 |         wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/wifi_regd.c:697:36: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/wifi_regd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/osdep_service_linux.o] Error 1
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_net_set_mac_address’:
/root/rtl8852be/os_dep/linux/os_intfs.c:79:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   79 |         _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
      |                     ~~~~~~~^~~~~~~~~~
In file included from /root/rtl8852be/include/drv_types.h:25,
                 from /root/rtl8852be/os_dep/linux/os_intfs.c:17:
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
      |                  ~~~~~~^~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_ndev_init’:
/root/rtl8852be/os_dep/linux/os_intfs.c:294:9: error: too many arguments to function ‘netif_napi_add’
  294 |         netif_napi_add(dev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
      |         ^~~~~~~~~~~~~~
In file included from /root/rtl8852be/include/osdep_service_linux.h:31,
                 from /root/rtl8852be/include/osdep_service.h:42:
/usr/src/linux-headers-6.1.0-35-common/include/linux/netdevice.h:2593:1: note: declared here
 2593 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
      | ^~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/os_intfs.c: In function ‘rtw_os_ndev_register’:
/root/rtl8852be/os_dep/linux/os_intfs.c:623:25: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  623 |         _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
      |                     ~~~~^~~~~~~~~~
/root/rtl8852be/include/osdep_service.h:281:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  281 | void _rtw_memcpy(void *dec, const void *sour, u32 sz);
      |                  ~~~~~~^~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:494:17: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
  494 |                 cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/rtl8852be/include/osdep_service_linux.h:100,
                 from /root/rtl8852be/include/osdep_service.h:42,
                 from /root/rtl8852be/include/drv_types.h:25,
                 from /root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-6.1.0-35-common/include/net/cfg80211.h:8443:6: note: declared here
 8443 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:505:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  505 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-6.1.0-35-common/include/net/cfg80211.h:8427:6: note: declared here
 8427 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:1189:26: error: ‘struct cfg80211_roam_info’ has no member named ‘bssid’
 1189 |                 roam_info.bssid = cur_network->network.MacAddress;
      |                          ^
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_wback’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:21:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration]
   21 |                 pci_dma_sync_single_for_device(hwdev, *bus_addr, size,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 dma_sync_single_for_device
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_cache_inv’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:30:17: error: implicit declaration of function ‘pci_dma_sync_single_for_cpu’; did you mean ‘dma_sync_single_for_cpu’? [-Werror=implicit-function-declaration]
   30 |                 pci_dma_sync_single_for_cpu(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 dma_sync_single_for_cpu
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/os_intfs.o] Error 1
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: At top level:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10354:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int,  u8,  bool,  const u8 *, struct key_params *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int,  unsigned char,  _Bool,  const unsigned char *, struct key_params *)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8,  bool,  const u8 *, struct key_params *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char,  _Bool,  const unsigned char *, struct key_params *)’} [-Werror=incompatible-pointer-types]
10354 |         .add_key = cfg80211_rtw_add_key,
      |                    ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10354:20: note: (near initialization for ‘rtw_cfg80211_ops.add_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10355:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int,  u8,  bool,  const u8 *, void *, void (*)(void *, struct key_params *))’ {aka ‘int (*)(struct wiphy *, struct net_device *, int,  unsigned char,  _Bool,  const unsigned char *, void *, void (*)(void *, struct key_params *))’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8,  bool,  const u8 *, void *, void (*)(void *, struct key_params *))’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char,  _Bool,  const unsigned char *, void *, void (*)(void *, struct key_params *))’} [-Werror=incompatible-pointer-types]
10355 |         .get_key = cfg80211_rtw_get_key,
      |                    ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10355:20: note: (near initialization for ‘rtw_cfg80211_ops.get_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10356:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int,  u8,  bool,  const u8 *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int,  unsigned char,  _Bool,  const unsigned char *)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8,  bool,  const u8 *)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char,  _Bool,  const unsigned char *)’} [-Werror=incompatible-pointer-types]
10356 |         .del_key = cfg80211_rtw_del_key,
      |                    ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10356:20: note: (near initialization for ‘rtw_cfg80211_ops.del_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10357:28: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int,  u8,  bool,  bool)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int,  unsigned char,  _Bool,  _Bool)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8,  bool,  bool)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char,  _Bool,  _Bool)’} [-Werror=incompatible-pointer-types]
10357 |         .set_default_key = cfg80211_rtw_set_default_key,
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10357:28: note: (near initialization for ‘rtw_cfg80211_ops.set_default_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10359:33: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, int,  u8)’ {aka ‘int (*)(struct wiphy *, struct net_device *, int,  unsigned char)’} from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, u8)’ {aka ‘int (*)(struct wiphy *, struct net_device *, unsigned char)’} [-Werror=incompatible-pointer-types]
10359 |         .set_default_mgmt_key = cfg80211_rtw_set_default_mgmt_key,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10359:33: note: (near initialization for ‘rtw_cfg80211_ops.set_default_mgmt_key’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10392: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]
10392 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10392:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10434:24: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10434 |         .get_channel = cfg80211_rtw_get_channel,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10434:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_get_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:39:29: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration]
   39 |                 *bus_addr = pci_map_single(hwdev, vir_addr, size, direction);
      |                             ^~~~~~~~~~~~~~
      |                             dma_map_single
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:10690:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10690 |         if (wdev->current_bss) {
      |                 ^~
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_unmap_bus_addr’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:50:17: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration]
   50 |                 pci_unmap_single(hwdev, *bus_addr, size, direction);
      |                 ^~~~~~~~~~~~~~~~
      |                 dma_unmap_single
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:6233:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6233 |                 *ht = 0;
      |                 ~~~~^~~
/root/rtl8852be/os_dep/linux/ioctl_cfg80211.c:6235:9: note: here
 6235 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/os_dep/linux/ioctl_cfg80211.o] Error 1
/root/rtl8852be/platform/platform_linux_pc_pci.c: In function ‘pci_free_noncache_mem’:
/root/rtl8852be/platform/platform_linux_pc_pci.c:97:17: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
   97 |                 pci_free_consistent(pdev, size, vir_addr, *bus_addr);
      |                 ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-35-common/scripts/Makefile.build:255: /root/rtl8852be/platform/platform_linux_pc_pci.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-35-common/Makefile:2038: /root/rtl8852be] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-35-amd64'
make: *** [Makefile:637: modules] Error 2
root@devuan1611:~/rtl8852be# make install
install -p -m 644 8852be.ko  /lib/modules/6.1.0-35-amd64/kernel/drivers/net/wireless/
install: cannot stat '8852be.ko': No such file or directory
make: *** [Makefile:646: install] Error 1 

Board footer

Forum Software