tbsdtv / media_build

GNU General Public License v2.0
32 stars 30 forks source link

Compile faults in shipped linux-media.tar.bz2 #62

Closed Borim7 closed 1 year ago

Borim7 commented 1 year ago

During the complation of the drivers the linux-media.tar.bz2 is downloaded from this repository, the currently shipped version trigger compile errors in following files:

The problem is always the same: The function signature of the remove function used for initialization of the struct i2c_driver does not match the struct i2c_driver type.

For example in mxl603.c the function is static void mxl603_remove(struct i2c_client *client), but the struct need a remove function returning an int. Change the function to static int mxl603_remove(struct i2c_client *client) and return always 0, fix this problem.

Can you please update the linux-media.tar.bz2?

My system is

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

Kernel: 5.15.0-76-generic
crazycat69 commented 1 year ago

Before compilation media_build scripts apply backport patches for older kernels For your certain case applied backports/v6.0_i2c_remove_tbs.patch for kernels < 6.1

Borim7 commented 1 year ago

Thanks for the hint, with this patch it worked.

In the end I switched from master to extra branch, as the patch is only available on extra.