Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852569 - net-wireless/broadcom-sta-6.30.223.271-r6 - /.../linux_osl.c: error: PCI_DMA_TODEVICE undeclared (first use in this function)
Summary: net-wireless/broadcom-sta-6.30.223.271-r6 - /.../linux_osl.c: error: PCI_DMA_...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-16 12:16 UTC by Toralf Förster
Modified: 2022-10-14 17:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.06 KB, text/plain)
2022-06-16 12:16 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,76.27 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
environment (environment,100.67 KB, text/plain)
2022-06-16 12:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,25.98 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.52 KB, application/x-bzip)
2022-06-16 12:16 UTC, Toralf Förster
Details
net-wireless:broadcom-sta-6.30.223.271-r6:20220616-114540.log (net-wireless:broadcom-sta-6.30.223.271-r6:20220616-114540.log,22.18 KB, text/plain)
2022-06-16 12:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-06-16 12:16:46 UTC
  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"
Comment 1 Toralf Förster gentoo-dev 2022-06-16 12:16:47 UTC
Created attachment 785717 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-16 12:16:49 UTC
Created attachment 785720 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-06-16 12:16:50 UTC
Created attachment 785723 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-16 12:16:53 UTC
Created attachment 785726 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-16 12:16:54 UTC
Created attachment 785729 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-16 12:16:55 UTC
Created attachment 785732 [details]
net-wireless:broadcom-sta-6.30.223.271-r6:20220616-114540.log
Comment 7 ShadowOne333 2022-10-14 17:18:13 UTC
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