You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Здравсвуйте! Возникла проблема при сборке ядра, из-за несовместимости типов указателей функций при инициализации структуры в макросе FBTFT_REGISTER_DRIVER
Железо:
Orange Pi+ 2
Система:
uname -a
Linux orangepiplus 6.6.18-current-sunxi #3 SMP Fri Feb 23 08:25:28 UTC 2024 armv7l GNU/Linux
Ход компиляции:
make[1]: Entering directory '/usr/src/linux-headers-6.6.18-current-sunxi'
CC [M] /home/pi/fb_st7796s/kernel_module/fb_st7796s.o
In file included from /home/pi/fb_st7796s/kernel_module/fb_st7796s.c:8:
/home/pi/fb_st7796s/kernel_module/fbtft.h:315:19: error: initialization of ‘void (*)(struct spi_device *)’ from incompatible pointer type ‘int (*)(struct spi_device *)’ [-Werror=incompatible-pointer-types]
315 | .remove = fbtft_driver_remove_spi, \
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/pi/fb_st7796s/kernel_module/fb_st7796s.c:196:1: note: in expansion of macro ‘FBTFT_REGISTER_DRIVER’
196 | FBTFT_REGISTER_DRIVER(DRVNAME, "sitronix,st7796s", &display);
| ^~~~~~~~~~~~~~~~~~~~~
/home/pi/fb_st7796s/kernel_module/fbtft.h:315:19: note: (near initialization for ‘fbtft_driver_spi_driver.remove’)
315 | .remove = fbtft_driver_remove_spi, \
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/pi/fb_st7796s/kernel_module/fb_st7796s.c:196:1: note: in expansion of macro ‘FBTFT_REGISTER_DRIVER’
196 | FBTFT_REGISTER_DRIVER(DRVNAME, "sitronix,st7796s", &display);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /home/pi/fb_st7796s/kernel_module/fb_st7796s.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.18-current-sunxi/Makefile:1915: /home/pi/fb_st7796s/kernel_module] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.18-current-sunxi'
make: *** [Makefile:8: default] Error 2
Заранее огромное спасибо!
The text was updated successfully, but these errors were encountered:
Здравсвуйте! Возникла проблема при сборке ядра, из-за несовместимости типов указателей функций при инициализации структуры в макросе FBTFT_REGISTER_DRIVER
Железо:
Orange Pi+ 2
Система:
Ход компиляции:
Заранее огромное спасибо!
The text was updated successfully, but these errors were encountered: