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

Problem With the execution of Makefile #6

Open
C4LV13N opened this issue Jun 9, 2023 · 2 comments
Open

Problem With the execution of Makefile #6

C4LV13N opened this issue Jun 9, 2023 · 2 comments

Comments

@C4LV13N
Copy link

C4LV13N commented Jun 9, 2023

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.

@MichalKochman
Copy link

I have the same issue, have you found a solotion?

@C4LV13N
Copy link
Author

C4LV13N commented Jan 22, 2024 via email

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

2 participants