linux_media
linux_media copied to clipboard
compiling errors on v4l on Centos 8
Hi there, I'm trying to compile the driver for a TBS6902 on Centos 8 with Kernel 4.18.0-348.el8.x86_64 and after executing make I get 2 errors.
first one is this:
In file included from ././include/linux/compiler_types.h:58,
from
second one is this one:
/tmp/ljalves-tbsdriver/media_build/v4l/compat.h: In function 'i2c_lock_adapter': /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1081:21: error: dereferencing pointer to incomplete type 'struct i2c_adapter' mutex_lock(&adapter->bus_lock); ^~ /tmp/ljalves-tbsdriver/media_build/v4l/compat.h: At top level: /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1083:46: warning: 'struct i2c_adapter' declared inside parameter list will not be visible outside of this definition or declaration static inline void i2c_unlock_adapter(struct i2c_adapter *adapter) ^~~~~~~~~~~ /tmp/ljalves-tbsdriver/media_build/v4l/compat.h: In function 'i2c_unlock_adapter': /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1085:23: error: dereferencing pointer to incomplete type 'struct i2c_adapter' mutex_unlock(&adapter->bus_lock);
I have also tried the tbs forked driver but it fails too but with:
In file included from
What can I do to get rid of it?
Thank you
Andreas