Coder Social home page Coder Social logo

make error on arch linux —— ch34x.c:1294:27: error: initialization of ‘void (*)(struct tty_struct *, struct usb about ch341ser HOT 5 CLOSED

beautifulzzzz avatar beautifulzzzz commented on July 23, 2024
make error on arch linux —— ch34x.c:1294:27: error: initialization of ‘void (*)(struct tty_struct *, struct usb

from ch341ser.

Comments (5)

juliagoda avatar juliagoda commented on July 23, 2024

Hi, could you create pull request and send it to this repo? I will add a reference to you as an author. Unfortunately, I don't have time to take care of this repo much anymore.

from ch341ser.

juliagoda avatar juliagoda commented on July 23, 2024

ok, no longer necessary, line changed according to advice

from ch341ser.

splatski avatar splatski commented on July 23, 2024

so on linux mint 21.1 I had to remove that const to get it to compile. I was getting
ch34x.c:1294:27: error: initialization of ‘void (*)(struct tty_struct *, struct usb_serial_port *, struct ktermios *)’ from incompatible pointer type ‘void (*)(struct tty_struct *, struct usb_serial_port *, const struct ktermios *)’ [-Werror=incompatible-pointer-types] 1294 | .set_termios = ch34x_set_termios,
I figured since adding it seemed to fix it for someone I'd try removing it and that fixed it for me

from ch341ser.

beautifulzzzz avatar beautifulzzzz commented on July 23, 2024

Hi, could you create pull request and send it to this repo? I will add a reference to you as an author. Unfortunately, I don't have time to take care of this repo much anymore.

OK,I'll do as you say next time (I find you fix it this time).

from ch341ser.

roboman2444 avatar roboman2444 commented on July 23, 2024

so on linux mint 21.1 I had to remove that const to get it to compile. I was getting ch34x.c:1294:27: error: initialization of ‘void (*)(struct tty_struct *, struct usb_serial_port *, struct ktermios *)’ from incompatible pointer type ‘void (*)(struct tty_struct *, struct usb_serial_port *, const struct ktermios *)’ [-Werror=incompatible-pointer-types] 1294 | .set_termios = ch34x_set_termios, I figured since adding it seemed to fix it for someone I'd try removing it and that fixed it for me

Same thing for me... but i'm on arch (latest kernel 6.1.8-arch1-1) so that makes it all the more confusing.

from ch341ser.

Related Issues (20)

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.