Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AQC113C driver AQtion-2.5.12 build error: ‘PCI_IRQ_LEGACY’ undeclared (first use in this function) #69

Open
epox33d opened this issue Dec 30, 2024 · 0 comments

Comments

@epox33d
Copy link

epox33d commented Dec 30, 2024

OS: Debian GNU/Linux 12 (bookworm) x86_64
Kernel: 6.13.0-rc5-custom SMP PREEMPT_DYNAMIC Mon Dec 30 21:52:20 MSK 2024 x86_64 GNU/Linux
Network apadter with AQC113C @ pcie x4

Trying to bild driver 05-23-22_Marvell_Linux_2.5.5_1_1 downloaded from official Marvell(Aquantia) https://www.marvell.com/support/downloads.html
Got error: "PCI_IRQ_LEGACY’ undeclared (first use in this function)"

With stock kernel 6.1.0-28-amd64 build error "too many arguments to function ‘netif_napi_add" #44

root@*****:/opt/07-18-24_Marvell_Linux_2.5.12/Linux# make
make -j4 -C /lib/modules/6.13.0-rc5-custom/build M="/opt/07-18-24_Marvell_Linux_2.5.12/Linux" modules
make[1]: Entering directory '/usr/src/linux-headers-6.13.0-rc5-custom'
make[2]: Entering directory '/opt/07-18-24_Marvell_Linux_2.5.12/Linux'
  CC [M]  aq_main.o
  CC [M]  aq_nic.o
  CC [M]  aq_pci_func.o
  CC [M]  aq_vec.o
aq_pci_func.c: In function ‘aq_pci_probe’:
aq_pci_func.c:383:37: error: ‘PCI_IRQ_LEGACY’ undeclared (first use in this function); did you mean ‘NR_IRQS_LEGACY’?
  383 |                                     PCI_IRQ_LEGACY);
      |                                     ^~~~~~~~~~~~~~
      |                                     NR_IRQS_LEGACY
aq_pci_func.c:383:37: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/usr/src/linux-headers-6.13.0-rc5-custom/scripts/Makefile.build:194: aq_pci_func.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-6.13.0-rc5-custom/Makefile:1989: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.13.0-rc5-custom/Makefile:251: __sub-make] Error 2
make[2]: Leaving directory '/opt/07-18-24_Marvell_Linux_2.5.12/Linux'
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.13.0-rc5-custom'
make: *** [Makefile:36: all] Error 2

@epox33d epox33d changed the title Build issue AQtion-2.5.12 - error: ‘PCI_IRQ_LEGACY’ undeclared (first use in this function) AQC113C driver AQtion-2.5.12 build error: ‘PCI_IRQ_LEGACY’ undeclared (first use in this function) Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant