Coder Social home page Coder Social logo

fbtft-ili9488's People

Contributors

snitro avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yellowkun888

fbtft-ili9488's Issues

error: initialization of ‘void (*)(struct spi_device *)’ from incompatible pointer type ‘int (*)(struct spi_device *)

armbian and orangepi zero plus ;
I don't know programming, so I followed some tutorials on the Internet.
MakeFile:
ifneq ($(KERNELRELEASE),)
obj-m += fb_ili9488.o
else
PWD=$(shell pwd)
KDIR=/usr/src/linux-headers-$(shell uname -r)
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
endif

and get error:
Opi0plus:fb_ili9488:# make all
make -C /usr/src/linux-headers-6.6.21-current-sunxi64 M=/root/fb_ili9488 modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.21-current-sunxi64'
CC [M] /root/fb_ili9488/fb_ili9488.o
/root/fb_ili9488/fb_ili9488.c: In function ‘write_vmem16_bus8’:
/root/fb_ili9488/fb_ili9488.c:98:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
98 | if ((int)(par->gpio.dc) != -1)
| ^
In file included from /root/fb_ili9488/fb_ili9488.c:13:
/root/fb_ili9488/fb_ili9488.c: At top level:
/root/fb_ili9488/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,
| ^~~~~~~~~~~~~~~~~~~~~~~
/root/fb_ili9488/fb_ili9488.c:148:1: note: in expansion of macro ‘FBTFT_REGISTER_DRIVER’
148 | FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9488", &display);
| ^~~~~~~~~~~~~~~~~~~~~
/root/fb_ili9488/fbtft.h:315:19: note: (near initialization for ‘fbtft_driver_spi_driver.remove’)
315 | .remove = fbtft_driver_remove_spi,
| ^~~~~~~~~~~~~~~~~~~~~~~
/root/fb_ili9488/fb_ili9488.c:148:1: note: in expansion of macro ‘FBTFT_REGISTER_DRIVER’
148 | FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9488", &display);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /root/fb_ili9488/fb_ili9488.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.21-current-sunxi64/Makefile:1915: /root/fb_ili9488] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.21-current-sunxi64'
make: *** [Makefile:7: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.