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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
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: 2023-06-24 16:13 UTC (History)
1 user (show)

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
Comment 8 Larry the Git Cow gentoo-dev 2023-06-24 16:13:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1469bc903cac37bff61b41532127110909d5f57

commit b1469bc903cac37bff61b41532127110909d5f57
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2023-06-24 16:09:49 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2023-06-24 16:09:49 +0000

    net-wireless/broadcom-sta: add 6.30.223.271-r7
    
    Bump to EAPI-8
    Migrate to linux-mod-r1
    Include arch patches
    Address pkgcheck errors concerning S in pkg_setup
    Fix compilation errors
    
    Thanks to the following users that provided patches
    ShadowOne333
    Alan Kyder
    
    Closes: https://bugs.gentoo.org/836093
    Closes: https://bugs.gentoo.org/852569
    Closes: https://bugs.gentoo.org/836165
    Closes: https://bugs.gentoo.org/839648
    Closes: https://bugs.gentoo.org/908711
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 .../broadcom-sta-6.30.223.271-r7.ebuild            | 103 ++++++++++
 .../broadcom-sta/files/001-null-pointer-fix.patch  |  48 +++++
 net-wireless/broadcom-sta/files/002-rdtscl.patch   |  22 +++
 net-wireless/broadcom-sta/files/003-linux47.patch  | 109 +++++++++++
 net-wireless/broadcom-sta/files/004-linux48.patch  |  64 +++++++
 .../files/005-debian-fix-kernel-warnings.patch     | 161 ++++++++++++++++
 net-wireless/broadcom-sta/files/006-linux411.patch |  27 +++
 net-wireless/broadcom-sta/files/007-linux412.patch |  78 ++++++++
 net-wireless/broadcom-sta/files/008-linux415.patch |  46 +++++
 .../files/009-fix_mac_profile_discrepancy.patch    |  14 ++
 net-wireless/broadcom-sta/files/010-linux56.patch  |  55 ++++++
 net-wireless/broadcom-sta/files/011-linux59.patch  | 211 +++++++++++++++++++++
 net-wireless/broadcom-sta/files/012-linux517.patch |  80 ++++++++
 net-wireless/broadcom-sta/files/013-linux518.patch |  71 +++++++
 net-wireless/broadcom-sta/files/014-linux414.patch |  37 ++++
 net-wireless/broadcom-sta/files/015-linux600.patch |  31 +++
 net-wireless/broadcom-sta/files/016-linux601.patch |  90 +++++++++
 .../broadcom-sta/files/broadcom-sta-modules.conf   |  17 ++
 18 files changed, 1264 insertions(+)