xtrx-dkms fails to build with the latest kinetic kernel 5.19

Bug #1982006 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xtrx-dkms (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
New
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

xtrx-dkms fails to build on kernel 5.19 with the following errors:

/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3/build/xtrx.c:624:33: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
  624 | pbufs[i].virt = pci_alloc_consistent(d->pdev, buflen, &pbufs[i].phys);
      | ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3/build/xtrx.c:624:31: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  624 | pbufs[i].virt = pci_alloc_consistent(d->pdev, buflen, &pbufs[i].phys);
      | ^
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3/build/xtrx.c:628:33: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
  628 | pci_free_consistent(d->pdev, buflen, pbufs[i].virt, pbufs[i].phys);
      | ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3/build/xtrx.c: In function ‘xtrx_probe’:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3/build/xtrx.c:1165:13: error: implicit declaration of function ‘pci_set_consistent_dma_mask’ [-Werror=implicit-function-declaration]
 1165 | if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

[Test case]

$ sudo apt install xtrx-dkms

[Fix]

Provide equivalent pci_*() intefaces compatible with kernel 5.19.

[Regression potential]

We may experience regressions in this driver with kernels >= 5.19.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :

Fix (debdiff) to build this module with a 5.19 kernel in attach.

tags: added: patch
affects: Ubuntu Kinetic → xtrx-dkms (Ubuntu Kinetic)
Changed in xtrx-dkms (Ubuntu Kinetic):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xtrx-dkms - 0.0.1+git20190320.5ae3a3e-3ubuntu1

---------------
xtrx-dkms (0.0.1+git20190320.5ae3a3e-3ubuntu1) kinetic; urgency=medium

  * Support Linux 5.19 (LP: #1982006):
    - debian/patches/0001-support-linux-5.19.patch

 -- Andrea Righi <email address hidden> Mon, 18 Jul 2022 15:15:54 +0000

Changed in xtrx-dkms (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to support linux hwe 5.19 in jammy.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.