Page 1 of 1

Unable to successfully compile drivers in Mint 21.3

PostPosted: Wed Mar 12, 2025 12:51 am
by pinnerite
I have successfully run the open source scripts for several years for both my TBS-6280m and TBS-6281 DVB-T2 cards.
I get "make failed" for the following kernels:

5.15.0-133-generic
5.15.0-134-generic
6.8.0-52-generic

This is the error report from the scroll-up:
> >> /opt/media_build/v4l/ccs-core.c: In function 'ccs_set_ctrl':
> >> /opt/media_build/v4l/ccs-core.c:668:21: error: too many arguments to function 'pm_runtime_get_if_active'
> >> 668 | pm_status = pm_runtime_get_if_active(&client->dev, true);
> >> | ^~~~~~~~~~~~~~~~~~~~~~~~
> >> In file included from /opt/media_build/v4l/ccs-core.c:22:
> >> ./include/linux/pm_runtime.h:75:12: note: declared here
> >> 75 | extern int pm_runtime_get_if_active(struct device *dev);
> >> | ^~~~~~~~~~~~~~~~~~~~~~~~
> >
> > This invalid function definition using two parameters ("&client->dev",
> > true") is what breaks it, as only one parameter ("struct device *dev")
> > is in the declaration in the header.

Anybody solved the problem?

Re: Unable to successfully compile drivers in Mint 21.3

PostPosted: Wed Mar 12, 2025 1:50 am
by crazycat

Re: Unable to successfully compile drivers in Mint 21.3

PostPosted: Wed Mar 12, 2025 5:11 am
by pinnerite
I found this myself but I don't know how to "pull" a patch.
Sound painful.

[SOLVED] Re: Unable to successfully compile drivers in Mint

PostPosted: Sun Mar 16, 2025 12:33 am
by pinnerite
The problem was my mistake on relying on the kernel headers.
It needed the full source.