]> git.ipfire.org Git - thirdparty/openwrt.git/commit
vrx518_ep: fix compilation error with kernel 6.12
authorAndre Heider <a.heider@gmail.com>
Sat, 10 May 2025 09:19:18 +0000 (17:19 +0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 13 May 2025 20:02:19 +0000 (22:02 +0200)
commite80dfdb6c5e2040e055bf14308af53da8792a596
treecf7b925d63e84d37e38bffe1eb2dac2aa8fd6eff
parentdcc440c7c91f3eb833ba54753d52301755f448e9
vrx518_ep: fix compilation error with kernel 6.12

PCI_IRQ_LEGACY was renamed to PCI_IRQ_INTX for kernel 6.10. Fix
compilation error:

/home/db/owrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/vrx518_ep-2.1.0/ep.c:469:69: error: 'PCI_IRQ_LEGACY' undeclared (first use in this function); did you mean 'NR_IRQS_LEGACY'?
  469 |         err = pci_alloc_irq_vectors(pdev, nvec, nvec, PCI_IRQ_MSI | PCI_IRQ_LEGACY);
      |                                                                     ^~~~~~~~~~~~~~
      |                                                                     NR_IRQS_LEGACY

Signed-off-by: Andre Heider <a.heider@gmail.com>
Co-authored-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/lantiq/vrx518_ep/patches/100-compat.patch