Git Product home page Git Product logo

Comments (6)

itarozzi avatar itarozzi commented on September 14, 2024

same here:

DKMS make.log for tty0tty-r54.b843c37 for kernel 6.6.7-4-MANJARO (x86_64)
lun 18 dic 2023, 15:34:24, CET
make -C /lib/modules/6.6.7-4-MANJARO/build M=/var/lib/dkms/tty0tty/r54.b843c37/build modules
make[1]: ingresso nella directory «/usr/lib/modules/6.6.7-4-MANJARO/build»
  CC [M]  /var/lib/dkms/tty0tty/r54.b843c37/build/tty0tty.o
/var/lib/dkms/tty0tty/r54.b843c37/build/tty0tty.c:855:18: error: initialization of ‘ssize_t (*)(struct tty_struct *, const u8 *, size_t)’ {aka ‘long int (*)(struct tty_struct *, const unsigned char *, long unsigned int)’} from incompatible pointer type ‘int (*)(struct tty_struct *, const unsigned char *, int)’ [-Werror=incompatible-pointer-types]
  855 |         .write = tty0tty_write,
      |                  ^~~~~~~~~~~~~
/var/lib/dkms/tty0tty/r54.b843c37/build/tty0tty.c:855:18: note: (near initialization for ‘serial_ops.write’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/tty0tty/r54.b843c37/build/tty0tty.o] Error 1
make[2]: *** [/usr/lib/modules/6.6.7-4-MANJARO/build/Makefile:1913: /var/lib/dkms/tty0tty/r54.b843c37/build] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: uscita dalla directory «/usr/lib/modules/6.6.7-4-MANJARO/build»
make: *** [Makefile:30: all] Error 2

from tty0tty.

martinxyz avatar martinxyz commented on September 14, 2024

The fix is #49

from tty0tty.

itarozzi avatar itarozzi commented on September 14, 2024

The fix described in #49 is already applied to my source.

This error occours in static struct tty_operations serial_ops declaration

from tty0tty.

ssterling avatar ssterling commented on September 14, 2024

Forgive me for the multiple references; I forgot to git add twice and mangled the commits. Anyway, #52—assuming you’ve already applied #49—should solve this problem on kernel 6.6.1 and up.

from tty0tty.

itarozzi avatar itarozzi commented on September 14, 2024

Yes, I can confirm that it works. Thank you very much

from tty0tty.

sateuwdie avatar sateuwdie commented on September 14, 2024

Error on kernel 6.6.8

make[1]: ingresso nella directory «/usr/src/linux-6.6.8»
  CC [M]  /tmp/MG/tty0tty-git_0124_6.6.8/module/tty0tty.o
/tmp/MG/tty0tty-git_0124_6.6.8/module/tty0tty.c:606:18: error: initialization of ‘ssize_t (*)(struct tty_struct *, const u8 *, size_t)’ {aka ‘long int (*)(struct tty_struct *, const unsigned char *, long unsigned int)’} from incompatible pointer type ‘int (*)(struct tty_struct *, const unsigned char *, int)’ [-Werror=incompatible-pointer-types]
  606 |         .write = tty0tty_write,
      |                  ^~~~~~~~~~~~~
/tmp/MG/tty0tty-git_0124_6.6.8/module/tty0tty.c:606:18: note: (near initialization for ‘serial_ops.write’)
/tmp/MG/tty0tty-git_0124_6.6.8/module/tty0tty.c:608:24: error: initialization of ‘void (*)(struct tty_struct *, const struct ktermios *)’ from incompatible pointer type ‘void (*)(struct tty_struct *, struct ktermios *)’ [-Werror=incompatible-pointer-types]
  608 |         .set_termios = tty0tty_set_termios,
      |                        ^~~~~~~~~~~~~~~~~~~
/tmp/MG/tty0tty-git_0124_6.6.8/module/tty0tty.c:608:24: note: (near initialization for ‘serial_ops.set_termios’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /tmp/MG/tty0tty-git_0124_6.6.8/module/tty0tty.o] Errore 1
make[2]: *** [/usr/src/linux-6.6.8/Makefile:1913: /tmp/MG/tty0tty-git_0124_6.6.8/module] Errore 2
make[1]: *** [Makefile:234: __sub-make] Errore 2
make[1]: uscita dalla directory «/usr/src/linux-6.6.8»
make: *** [Makefile:26: default] Errore 2

from tty0tty.

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.