xtrx-dkms FTBS with linux 6.5 on jammy

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

Bug Description

[Impact]

./include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   29 | #define THIS_MODULE (&__this_module)
      | ~^~~~~~~~~~~~~~~
      | |
      | struct module *

[Test case]

 $ sudo apt install xtrx-dkms

[Fix]

Backport changes in the xtrx module from mantic to properly support the new linux 6.5 ABI.

[Regression potential]

We may experience regressions in systems that are using this module (SDR radio capability), especially with the new 6.5 kernel.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3ubuntu1~22.04.2
ProcVersionSignature: User Name 6.5.0-14.14~22.04.1-generic 6.5.3
Uname: Linux 6.5.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/vdb)
Date: Tue Nov 28 14:10:44 2023
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: xtrx-dkms
UpgradeStatus: No upgrade log present (probably fresh install)

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

debdiff in attach allows to build xtrx-dkms with linux 6.5 in jammy

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

Test result with the new 6.5 kernel:

Building for 6.5.0-14-generic
Building initial module for 6.5.0-14-generic
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

xtrx.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-14-generic/updates/dkms/

Test result with the GA kernel 5.15:

Building for 5.15.0-91-generic
Building initial module for 5.15.0-91-generic
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

xtrx.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-91-generic/updates/dkms/

tags: added: patch
Revision history for this message
xtrx-fix (xtrx-fix) wrote :

Could you rebuild the package? The fix is now upstream in github included and all merged.

Manual build using this is also working fine

sudo apt install dkms gcc-12 g++-12
git clone https://github.com/myriadrf/xtrx_linux_pcie_drv.git xtrx-0.0.1-2
cd xtrx-0.0.1-2
sudo cp -R . /usr/src/xtrx-0.0.1-2
sudo dkms add -m xtrx -v 0.0.1-2
sudo dkms build -m xtrx -v 0.0.1-2
sudo dkms install -m xtrx -v 0.0.1-2
sudo modprobe xtrx
sudo cp 50-xtrx.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && sudo udevadm trigger

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.