616 | pci_free_consistent(osh->pdev, size, va, (dma_addr_t)pa); | ^~~~~~~~~~~~~~~~~~~ | osl_dma_free_consistent /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c: In function osl_dma_map’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:626:38: error: PCI_DMA_TODEVICE’ undeclared (first use in this function); did you mean DMA_TO_DEVICE’? 626 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE; | ^~~~~~~~~~~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_hardened-j4-20220612-060005 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.1 [2] x86_64-pc-linux-gnu-12.1.1 * clang/llvm (if any): clang version 14.0.5 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/14/bin /usr/lib/llvm/14 14.0.5 Python 3.9.13 Available Ruby profiles: (none found) Available Rust versions: [1] rust-1.61.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17] 3) Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit f936af7c9148b1481a803904947494142603e46a Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Jun 16 10:48:19 2022 +0000 2022-06-16 10:48:19 UTC emerge -qpvO net-wireless/broadcom-sta [ebuild N ] net-wireless/broadcom-sta-6.30.223.271-r6 USE="-dist-kernel"
Created attachment 785717 [details] emerge-info.txt
Created attachment 785720 [details] emerge-history.txt.bz2
Created attachment 785723 [details] environment
Created attachment 785726 [details] etc.portage.tar.bz2
Created attachment 785729 [details] logs.tar.bz2
Created attachment 785732 [details] net-wireless:broadcom-sta-6.30.223.271-r6:20220616-114540.log
The following patch for kernels 5.18 and onwards works properly when combined alongside the other patch for kernel 5.17 found in the other bug thread. https://github.com/archlinux/svntogit-community/blob/packages/broadcom-wl-dkms/trunk/013-linux518.patch