sonocotta / tas5805m-for-raspbian-paspberry-pi-zero

device tree and kernel module for running TI TAS5805M DAC on Raspberry Pi
GNU General Public License v3.0
9 stars 0 forks source link

Unable to compile kernel driver #7

Closed asve99 closed 2 months ago

asve99 commented 2 months ago

Hello, I am trying to setup Volumio with the Louder Raspberry Pi and are following the steps from here:

https://github.com/sonocotta/raspberry-media-center?tab=readme-ov-file#louder-raspberry-pi

When I run the make all I get the error below:

volumio@office-volumio:~/tas5805m-for-raspbian-paspberry-pi-zero$ make all
make -C /lib/modules/6.1.77-v7+/build M=/home/volumio/tas5805m-for-raspbian-paspberry-pi-zero modules
make[1]: Entering directory '/usr/src/rpi-linux'
  CC [M]  /home/volumio/tas5805m-for-raspbian-paspberry-pi-zero/tas5805m.o
/home/volumio/tas5805m-for-raspbian-paspberry-pi-zero/tas5805m.c:497:19: error: initialization of 'int (*)(struct i2c_client *, const struct i2c_device_id *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
     .probe      = tas5805m_i2c_probe,
                   ^~~~~~~~~~~~~~~~~~
/home/volumio/tas5805m-for-raspbian-paspberry-pi-zero/tas5805m.c:497:19: note: (near initialization for 'tas5805m_i2c_driver.probe')
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /home/volumio/tas5805m-for-raspbian-paspberry-pi-zero/tas5805m.o] Error 1
make[1]: *** [Makefile:2014: /home/volumio/tas5805m-for-raspbian-paspberry-pi-zero] Error 2
make[1]: Leaving directory '/usr/src/rpi-linux'
make: *** [Makefile:4: all] Error 2

Here's the kernel details:

Linux office-volumio 6.1.77-v7+ #1730 SMP Thu Feb  8 15:17:51 GMT 2024 armv7l GNU/Linux

Any help would be great.

Thanks,

Adrian.

anabolyc commented 2 months ago

Hey @asve99 thanks for reporting. Can you pls try features/fix-volumio-build branch?

asve99 commented 2 months ago

Hey @asve99 thanks for reporting. Can you pls try features/fix-volumio-build branch?

Thank you very much for the quick reply. I can now compile the driver successfully.