smifb2-dkms DKMS FTBFS wrt Linux 6.6

Bug #2042106 reported by Paolo Pisati
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smifb2 (Ubuntu)
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

...
/var/lib/dkms/smifb2/2.2.3.4.g1828e79/build/smi_drv.c:505:10: error: ‘struct drm_driver’ has no member named ‘gem_prime_mmap’; did you mean ‘gem_prime_import’?
  505 | .gem_prime_mmap = drm_gem_prime_mmap,
      | ^~~~~~~~~~~~~~
      | gem_prime_import
/var/lib/dkms/smifb2/2.2.3.4.g1828e79/build/smi_drv.c:505:37: error: initialization of ‘void (*)(struct drm_printer *, struct drm_file *)’ from incompatible pointer type ‘int (*)(struct drm_gem_object *, struct vm_area_struct *)’ [-Werror=incompatible-pointer-types]
  505 | .gem_prime_mmap = drm_gem_prime_mmap,
      | ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/smifb2/2.2.3.4.g1828e79/build/smi_drv.c:505:37: note: (near initialization for ‘driver.show_fdinfo’)
/var/lib/dkms/smifb2/2.2.3.4.g1828e79/build/smi_drv.c:522:31: error: ‘drm_gem_prime_handle_to_fd’ undeclared here (not in a function)
  522 | .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/smifb2/2.2.3.4.g1828e79/build/smi_drv.c:523:31: error: ‘drm_gem_prime_fd_to_handle’ undeclared here (not in a function)
  523 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
...

[Fix]

Apply the attached fix.

[How to test]

Install (and build) the patched package.

[Regression potential]

Low: all fixes are conditionally compiled only for Linux >= 6.6.

Tags: patch
Revision history for this message
Paolo Pisati (p-pisati) wrote :
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smifb2 - 2.2.3.4.g1828e79-3ubuntu1

---------------
smifb2 (2.2.3.4.g1828e79-3ubuntu1) noble; urgency=medium

  * debian/patches/0001-fix-Linux-6.6-drm_gem_prime_-fd_to_handle-handle_to_.patch,
    debian/patches/0002-fix-Linux-6.6-drm_gem_prime_mmap-is-now-the-default-.patch:
    - Fix Linux 6.6. FTBFS (LP: #2042106)

 -- Paolo Pisati <email address hidden> Tue, 31 Oct 2023 14:55:29 +0000

Changed in smifb2 (Ubuntu Noble):
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.