Failed to build against linux-6.16
| 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
CC [M] v4l2loopback.o
v4l2loopback.c: In function 'v4l2_loopback_
v4l2loopback.
2910 | setup_timer(
| ^~~~~~~~~~~
make[4]: *** [/usr/src/
[ 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-
$ sudo apt install linux-generic-
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
- Ubuntu Kernel DKMS Uploaders: Pending requested
-
Diff: 183 lines (+149/-0)5 files modifieddebian/changelog (+9/-0)
debian/patches/Drop-from_timer-macro-usage.patch (+48/-0)
debian/patches/added-functionality-for-linux-6.15-626.patch (+52/-0)
debian/patches/only-use-timer_delete_sync-compat-macro-for-linux-6.2.0.patch (+37/-0)
debian/patches/series (+3/-0)
| Changed in v4l2loopback (Ubuntu Questing): | |
| status: | New → Triaged |
| description: | updated |
| description: | updated |

In v4l2loopback.c: timer_setup) && defined(from_timer)
```
48 #if defined(
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.