Giter Club home page Giter Club logo

cp210x's People

Contributors

therealbstern avatar tr0nics avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

evs38

cp210x's Issues

Can't receive data [was: Can't compile]

Hello,

I can't get this driver to compile it throws this error:
Kernel version: 4.19.0-10-amd64

make -C /lib/modules/4.19.0-10-amd64/build M=/home/user/cp210x modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-10-amd64'
  CC [M]  /home/user/cp210x/cp210x.o
/home/user/cp210x/cp210x.c: In functioncp210x_get_tx_queue_byte_count’:
/home/user/cp210x/cp210x.c:703:26: error: dereferencing pointer to incomplete typestruct cp210x_comm_statussts = kmalloc(sizeof(*sts), GFP_KERNEL);
                          ^~~~
/home/user/cp210x/cp210x.c: In functioncp210x_get_termios_port’:
/home/user/cp210x/cp210x.c:781:9: error: passing argument 5 ofcp210x_get_configfrom incompatible pointer type [-Werror=incompatible-pointer-types]
         &bits, 2);
         ^~~~~
/home/user/cp210x/cp210x.c:389:42: note: expectedunsigned int *but argument is of typeu16 *’ {akashort unsigned int *’}
     u8 request, int value, unsigned int *data, unsigned int size) {
                            ~~~~~~~~~~~~~~^~~~
/home/user/cp210x/cp210x.c: In functioncp210x_set_termios’:
/home/user/cp210x/cp210x.c:941:37: error: passing argument 5 ofcp210x_get_configfrom incompatible pointer type [-Werror=incompatible-pointer-types]
             CP210X_GET_LINE_CTL, 0, &bits, 2);
                                     ^~~~~
/home/user/cp210x/cp210x.c:389:42: note: expectedunsigned int *but argument is of typeu16 *’ {akashort unsigned int *’}
     u8 request, int value, unsigned int *data, unsigned int size) {
                            ~~~~~~~~~~~~~~^~~~
/home/user/cp210x/cp210x.c:982:37: error: passing argument 5 ofcp210x_get_configfrom incompatible pointer type [-Werror=incompatible-pointer-types]
             CP210X_GET_LINE_CTL, 0, &bits, 2);
                                     ^~~~~
/home/user/cp210x/cp210x.c:389:42: note: expectedunsigned int *but argument is of typeu16 *’ {akashort unsigned int *’}
     u8 request, int value, unsigned int *data, unsigned int size) {
                            ~~~~~~~~~~~~~~^~~~
/home/user/cp210x/cp210x.c:1009:37: error: passing argument 5 ofcp210x_get_configfrom incompatible pointer type [-Werror=incompatible-pointer-types]
             CP210X_GET_LINE_CTL, 0, &bits, 2);
                                     ^~~~~
/home/user/cp210x/cp210x.c:389:42: note: expectedunsigned int *but argument is of typeu16 *’ {akashort unsigned int *’}
     u8 request, int value, unsigned int *data, unsigned int size) {
                            ~~~~~~~~~~~~~~^~~~
/home/user/cp210x/cp210x.c: In functioncp210x_tiocmget’:
/home/user/cp210x/cp210x.c:1099:31: error: passing argument 5 ofcp210x_get_configfrom incompatible pointer type [-Werror=incompatible-pointer-types]
         CP210X_GET_MDMSTS, 0, &control, 1);
                               ^~~~~~~~
/home/user/cp210x/cp210x.c:389:42: note: expectedunsigned int *but argument is of typeu8 *’ {akaunsigned char *’}
     u8 request, int value, unsigned int *data, unsigned int size) {
                            ~~~~~~~~~~~~~~^~~~
/home/user/cp210x/cp210x.c: In functioncp210x_process_read_urb’:
/home/user/cp210x/cp210x.c:1238:20: warning: unused variablemax_packet_size’ [-Wunused-variable]
     unsigned short max_packet_size = 128;
                    ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-10-common/scripts/Makefile.build:315: /home/user/cp210x/cp210x.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-10-common/Makefile:1545: _module_/home/user/cp210x] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-10-amd64'
make: *** [Makefile:5: all] Error 2

Could you please help me to make it compile successfully?

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.