v4l2loopback: build error in focal with new kernel linux-hwe.5.8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
v4l2loopback (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Building this module in focal against the new linux-hwe-5.8 returns the following errors:
/var/lib/
137 | static inline void v4l2l_get_
| ^~~~~~~
/var/lib/
/var/lib/
147 | tv->tv_sec = (time_t)ts.tv_sec;
| ^~
...
/var/lib/
2441 | if (video_
| ^~~~~~~~~~~~~~~~
| VFL_TYPE_SUBDEV
cc1: some warnings being treated as errors
[Test case]
$ sudo apt install v4l2loopback-dkms
Build errors are reported in make.log.
[Fix]
Fix by adding some #ifdef's to properly support the struct timeval (that is not available anymore in 5.8) and handle the rename of VFL_TYPE_GRABBER to VFL_TYPE_VIDEO (in 5.8).
[Regression potential]
The source code for the 5.4 kernel remains the same, so there is no regression potential. The new changes are all conditionals and they are all applied to the 5.8 kernel.
tags: | added: patch |
description: | updated |
Changed in v4l2loopback (Ubuntu): | |
status: | New → Invalid |
description: | updated |
Changed in v4l2loopback (Ubuntu Focal): | |
status: | New → In Progress |
debdiff reported in attach seems to fix all the build errors with linux-5.8.