tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
169 stars 79 forks source link

Compilation failure incompatible pointer types #323

Closed iotic-labs-markwharton closed 9 months ago

iotic-labs-markwharton commented 9 months ago
/home/mark/3rd/tbs/media_build/v4l/ad5820.c:373:27: error: initialization of 'int (*)(struct i2c_client *, const struct i2c_device_id *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
  373 |         .probe          = ad5820_probe,
crazycat69 commented 9 months ago

kernel version ?

iotic-labs-markwharton commented 9 months ago

$ uname -a Linux windy 6.2.0-32-generic #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

iotic-labs-markwharton commented 9 months ago

commit 0a3fbba551ddc2cf6a74ff5d4b9077be7aad0e36 (HEAD -> latest, origin/latest, origin/HEAD) Author: CrazyCat crazycat69@narod.ru Date: Tue Sep 12 01:12:05 2023 +0300

media: dvb-frontends\stid135: Change LLR calculation.
iotic-labs-markwharton commented 9 months ago

gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

iotic-labs-markwharton commented 9 months ago

Hope that's enough info mark@windy:~/3rd/tbs/media_build $ git branch -a

but on media_build mark@windy:~/3rd/tbs/media $ git branch -a issue-305

iotic-labs-markwharton commented 9 months ago

are those branches compatible?

crazycat69 commented 9 months ago

media_build/extra branch renamed to latest

media_build/latest compatible with linux_media/latest

iotic-labs-markwharton commented 9 months ago

Sorry if I'm being dim, but does that mean I'm ok (git-wise) and therefore shouldn't be getting these errors?

 error: initialization of 'int (*)(struct i2c_client *, const struct i2c_device_id *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
  373 |         .probe          = ad5820_probe,
      |                           ^~~~~~~~~~~~
iotic-labs-markwharton commented 9 months ago

switching to origin/latest make the compilation errors go away, but that leaves me in detatched HEAD

git branch -a
* (HEAD detached at origin/latest)
  extra
  master
  remotes/origin/HEAD -> origin/extra
  remotes/origin/extra
  remotes/origin/latest
  remotes/origin/master
iotic-labs-markwharton commented 9 months ago

I'll close this as the compilation errors have gone away