-
Notifications
You must be signed in to change notification settings - Fork 271
Description
Hi,
Awesome implimentaion of SPI driver using Raspberry pi.
I started to impliment the same ,while implimenting this in raspberry Pi 4 , i stuck with the problem of execution of Makefile. Below is the error message:
sudo make
make -C /lib/modules/6.1.21-v7l+/build M=/home/mihir/Desktop/SPI modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v7l+'
CC [M] /home/mihir/Desktop/SPI/spi_ssd1306_driver.o
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c: In function ‘etx_spi_init’:
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:12: error: implicit declaration of function ‘spi_busnum_to_master’ [-Werror=implicit-function-declaration]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^~~~~~~~~~~~~~~~~~~~
/home/mihir/Desktop/SPI/spi_ssd1306_driver.c:67:10: warning: assignment to ‘struct spi_controller *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
67 | master = spi_busnum_to_master( etx_spi_device_info.bus_num );
| ^
cc1: some warnings being treated as errors
make[2]: * [scripts/Makefile.build:250: /home/mihir/Desktop/SPI/spi_ssd1306_driver.o] Error 1
make[1]: * [Makefile:2012: /home/mihir/Desktop/SPI] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v7l+'
make: * [Makefile:8: all] Error 2
Request to suggest solution for the above problem.