ddcci-dkms fails to install with linux 5.15 on focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
In Progress
|
Undecided
|
Unassigned |
Bug Description
[Impact]
dcci-dkms is failing with the following build error on focal with the new 5.15 hwe kernel:
CC [M] /var/lib/
/var/lib/
1222 | .remove = ddcci_device_remove
| ^~~~~~~~~~~~~~~~~~~
/var/lib/
cc1: some warnings being treated as errors
[Fix]
Prototype of bus_type->remove() is changed starting with kernel 5.15 (function is not returning an int anymore, now it's a void function).
Fix with a proper #ifdef macro to support both prototypes, based on the specific kernel version that we are building against to.
[Test case]
$ sudo apt install ddcci-dkms
[Regression potential]
We may see stale devices / resource leaking on removal of ddcci devices, because with kernels >= 5.15 there's basically no error handling in bus_type->remove(). Previous kernels are unaffected, because the code remains identical.
tags: | added: patch |
debdiff in attach seems to fix the build issue on 5.15.