Giter Club home page Giter Club logo

ch934x-linux-driver's People

Contributors

soldierjazz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

494816491 5l1v3r1

ch934x-linux-driver's Issues

Make Error

Under Fedora I get:
make -C /lib/modules/6.1.13-603.inttf.fc37.x86_64/build M=/home/ripper121/Downloads/ch934x-linux-driver make[1]: Entering directory '/usr/src/kernels/6.1.13-603.inttf.fc37.x86_64' CC [M] /home/ripper121/Downloads/ch934x-linux-driver/ch934x.o In file included from ./include/linux/kernel.h:22, from /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:31: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c: In function ‘ch934x_resume’: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1448:22: error: ‘ASYNCB_INITIALIZED’ undeclared (first use in this function); did you mean ‘RCU_INITIALIZER’? 1448 | if (test_bit(ASYNCB_INITIALIZED, &ch934x->ttyport[0].port.flags)) { | ^~~~~~~~~~~~~~~~~~ ./include/linux/bitops.h:49:32: note: in definition of macro ‘bitop’ 49 | ((__builtin_constant_p(nr) && \ | ^~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1448:13: note: in expansion of macro ‘test_bit’ 1448 | if (test_bit(ASYNCB_INITIALIZED, &ch934x->ttyport[0].port.flags)) { | ^~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1448:22: note: each undeclared identifier is reported only once for each function it appears in 1448 | if (test_bit(ASYNCB_INITIALIZED, &ch934x->ttyport[0].port.flags)) { | ^~~~~~~~~~~~~~~~~~ ./include/linux/bitops.h:49:32: note: in definition of macro ‘bitop’ 49 | ((__builtin_constant_p(nr) && \ | ^~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1448:13: note: in expansion of macro ‘test_bit’ 1448 | if (test_bit(ASYNCB_INITIALIZED, &ch934x->ttyport[0].port.flags)) { | ^~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c: In function ‘ch934x_reset_resume’: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1478:22: error: ‘ASYNCB_INITIALIZED’ undeclared (first use in this function); did you mean ‘RCU_INITIALIZER’? 1478 | if (test_bit(ASYNCB_INITIALIZED, &ch934x->ttyport[0].port.flags)) | ^~~~~~~~~~~~~~~~~~ ./include/linux/bitops.h:49:32: note: in definition of macro ‘bitop’ 49 | ((__builtin_constant_p(nr) && \ | ^~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1478:13: note: in expansion of macro ‘test_bit’ 1478 | if (test_bit(ASYNCB_INITIALIZED, &ch934x->ttyport[0].port.flags)) | ^~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c: At top level: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1530:33: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types] 1530 | .write_room = ch934x_tty_write_room, | ^~~~~~~~~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1530:33: note: (near initialization for ‘ch934x_ops.write_room’) /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1533:33: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types] 1533 | .chars_in_buffer = ch934x_tty_chars_in_buffer, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1533:33: note: (near initialization for ‘ch934x_ops.chars_in_buffer’) /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1534:33: error: initialization of ‘void (*)(struct tty_struct *, const struct ktermios *)’ from incompatible pointer type ‘void (*)(struct tty_struct *, struct ktermios *)’ [-Werror=incompatible-pointer-types] 1534 | .set_termios = ch934x_tty_set_termios, | ^~~~~~~~~~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1534:33: note: (near initialization for ‘ch934x_ops.set_termios’) /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c: In function ‘ch934x_init’: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1545:29: error: implicit declaration of function ‘alloc_tty_driver’ [-Werror=implicit-function-declaration] 1545 | ch934x_tty_driver = alloc_tty_driver(CH934X_TTY_MINORS); | ^~~~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1545:27: warning: assignment to ‘struct tty_driver *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1545 | ch934x_tty_driver = alloc_tty_driver(CH934X_TTY_MINORS); | ^ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1562:17: error: implicit declaration of function ‘put_tty_driver’ [-Werror=implicit-function-declaration] 1562 | put_tty_driver(ch934x_tty_driver); | ^~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c: At top level: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1474:12: warning: ‘ch934x_reset_resume’ defined but not used [-Wunused-function] 1474 | static int ch934x_reset_resume(struct usb_interface *intf) | ^~~~~~~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:1414:12: warning: ‘ch934x_suspend’ defined but not used [-Wunused-function] 1414 | static int ch934x_suspend(struct usb_interface *intf, pm_message_t message) | ^~~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:197:12: warning: ‘ch934x_cmd_in’ defined but not used [-Wunused-function] 197 | static int ch934x_cmd_in(struct ch934x *ch934x, | ^~~~~~~~~~~~~ /home/ripper121/Downloads/ch934x-linux-driver/ch934x.c:131:12: warning: ‘ch934x_control_out’ defined but not used [-Wunused-function] 131 | static int ch934x_control_out(struct ch934x *ch934x, u8 request, | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:250: /home/ripper121/Downloads/ch934x-linux-driver/ch934x.o] Error 1 make[1]: *** [Makefile:2009: /home/ripper121/Downloads/ch934x-linux-driver] Error 2 make[1]: Leaving directory '/usr/src/kernels/6.1.13-603.inttf.fc37.x86_64' make: *** [Makefile:5: default] 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.