Failed to build against linux-6.16

Bug #2114259 reported by You-Sheng Yang
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
v4l2loopback (Ubuntu)
Fix Released
High
You-Sheng Yang
Noble
Fix Committed
High
You-Sheng Yang
Plucky
Invalid
Undecided
Unassigned
Questing
Fix Released
High
You-Sheng Yang

Bug Description

[ Impact ]

v4l2loopback fails to build on kernels > 6.16

from_timer macro renamed in v6.16-rc1 commit 41cb08555c416 ("treewide, timers: Rename from_timer() to timer_container_of()"):

CC [M] v4l2loopback.o
v4l2loopback.c: In function 'v4l2_loopback_add':
v4l2loopback.c:2910:9: error: implicit declaration of function 'setup_timer' [-Wimplicit-function-declaration]
 2910 | setup_timer(&dev->sustain_timer, sustain_timer_clb, nr);
      | ^~~~~~~~~~~
make[4]: *** [/usr/src/linux-headers-6.16.0-1-generic/scripts/Makefile.build:287: v4l2loopback.o] Error 1

[ Fix ]

Patch the dkms code to enable support for linux 6.16+

[ Test Plan ]

Install the latest linux-6.17 kernel on Noble:

$ sudo add-apt-repository ppa:canonical-kernel-team/ppa3
$ sudo apt install linux-generic-hwe-24.04-edge

Install v4l2loopback:

$ sudo apt install v4l2loopback-dkms

Module built and installed successfully

Load the module:

$ sudo modprobe v4l2loopback

Module loaded successfully

The same procedure must be repeated on linux-6.8 and linux-6.14 to test for possible regressions.

[ Regression Potential ]

We may experience regressions in systems that are using the v4l2loopback drivers, especially with kernels >= 6.8 kernel.

Related branches

Revision history for this message
You-Sheng Yang (vicamo) wrote :
You-Sheng Yang (vicamo)
Changed in v4l2loopback (Ubuntu Questing):
status: New → Triaged
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :

In v4l2loopback.c:
```
48 #if defined(timer_setup) && defined(from_timer)
49 #define HAVE_TIMER_SETUP
50 #endif
```

`timer_setup()` was first introduced in v4.14-rc3 commit 686fef928bba as a wrapper to `__setup_timer()`. Same for `from_timer()` macro. There is no reason to test both.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Attach debdiff for Questing. Also uploaded to https://launchpad.net/~vicamo/+archive/ubuntu/sru for easier review and verification.

Need sponsoring.

Changed in v4l2loopback (Ubuntu Questing):
status: Triaged → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package v4l2loopback - 0.15.0-0ubuntu2

---------------
v4l2loopback (0.15.0-0ubuntu2) questing; urgency=medium

  * Failed to build against linux-6.16 (LP: #2114259)
    - 0002-Drop-from_timer-macro-usage.patch

 -- You-Sheng Yang <email address hidden> Mon, 16 Jun 2025 12:12:19 +0800

Changed in v4l2loopback (Ubuntu Questing):
status: In Progress → Fix Released
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Nominate for Noble for linux-oem-6.17/noble. Plucky doesn't have linux kernel of v6.16+, so set INVALID.

Changed in v4l2loopback (Ubuntu Plucky):
status: New → Invalid
Changed in v4l2loopback (Ubuntu Noble):
status: New → In Progress
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I don't see a diff or git branch linked to this bug for noble, and the questing one was sponsored already. Unsubscribing sponsors. When there is something new to sponsor, please resubscribe.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Attach debdiff for Noble. Also uploaded to https://launchpad.net/~vicamo/+archive/ubuntu/sru-2114259 for review/verification.

description: updated
Revision history for this message
Massimiliano Pellizzer (mpellizzer) wrote :

Tested on Noble:
$ dkms status
v4l2loopback/0.12.7, 6.14.0-37-generic, x86_64: installed
v4l2loopback/0.12.7, 6.17.0-7-generic, x86_64: installed
v4l2loopback/0.12.7, 6.8.0-88-generic, x86_64: installed

Uploaded, thanks

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello You-Sheng, or anyone else affected,

Accepted v4l2loopback into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/v4l2loopback/0.12.7-2ubuntu5.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in v4l2loopback (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Verified build and function with also linux-oem-6.17 on Lenovo ThinkPad X1 Carbon Gen 12.

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
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.