Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: implicit declaration of function ‘iio_priv_to_dev’ #59

Open
FedeMont opened this issue Sep 15, 2021 · 0 comments
Open

error: implicit declaration of function ‘iio_priv_to_dev’ #59

FedeMont opened this issue Sep 15, 2021 · 0 comments

Comments

@FedeMont
Copy link

user@user-MacBookPro:~/macbook12-spi-driver$ make

make -C /lib/modules/5.11.0-34-generic/build M=/home/user/macbook12-spi-driver modules

make[1]: Entering directory '/usr/src/linux-headers-5.11.0-34-generic'
  CC [M]  /home/user/macbook12-spi-driver/apple-ib-als.o

/home/user/macbook12-spi-driver/apple-ib-als.c: In function ‘appleals_config_iio’:

/home/user/macbook12-spi-driver/apple-ib-als.c:468:28: error: implicit declaration of function ‘iio_priv_to_dev’ [-Werror=implicit-function-declaration]
  468 |  struct iio_dev *iio_dev = iio_priv_to_dev(als_dev);
      |                            ^~~~~~~~~~~~~~~

/home/user/macbook12-spi-driver/apple-ib-als.c:468:28: warning: initialization of ‘struct iio_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]

cc1: some warnings being treated as errors

make[2]: *** [scripts/Makefile.build:288: /home/user/macbook12-spi-driver/apple-ib-als.o] Error 1

make[1]: *** [Makefile:1848: /home/user/macbook12-spi-driver] Error 2

make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-34-generic'

make: *** [Makefile:13: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant