nvidia-dkms-470-server FTBS with linux 6.2

Bug #2009254 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-470-server (Ubuntu)
Fix Released
Undecided
Unassigned
Lunar
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

nvidia-dkms-470-server fails to build with linux 6.2:

/var/lib/dkms/nvidia-srv/470.161.03/build/nvidia/nv-acpi.c:84:19: error: initialization of ‘void (*)(struct acpi_device *)’ from incompatible pointer type ‘int (*)(struct acpi_device *, int)’ [-Werror=incompatible-pointer-types]
   84 | .remove = nv_acpi_remove_two_args,
      | ^~~~~~~~~~~~~~~~~~~~~~~

[Fix]

Change the driver to support also the 6.2 kernel ABI.

[Test case]

With linux 6.2 installed, run:

$ sudo apt install nvidia-dkms-470-server

[Regression potential]

We may experience regressions in newer kernels (>= 6.2) that are using nvidia-dkms-470-server (source code for previous kernels remain unchanged).

Tags: patch
Andrea Righi (arighi)
no longer affects: nvidia-graphics-drivers-450-server (Ubuntu)
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to use nvidia-dkms-470-server with linux 6.2.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-470-server - 470.161.03-0ubuntu2

---------------
nvidia-graphics-drivers-470-server (470.161.03-0ubuntu2) lunar; urgency=medium

  * debian/dkms_nvidia/patches/buildfix_kernel_6.2.patch,
    debian/templates/dkms_nvidia.conf.in,
    debian/dkms_nvidia.conf:
    - Add support for Linux 6.2 (LP: #2009254).

 -- Andrea Righi <email address hidden> Sat, 04 Mar 2023 10:00:38 +0000

Changed in nvidia-graphics-drivers-470-server (Ubuntu Lunar):
status: New → Fix Released
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.