tuxedocomputers / tuxedo-keyboard

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.
https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers
GNU General Public License v3.0
299 stars 93 forks source link

won't compile for kernel 6.5.5 #194

Closed mepreston closed 11 months ago

mepreston commented 1 year ago
In file included from ./include/linux/linkage.h:7, from ./include/linux/kernel.h:17, from /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c:20: /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c: In function ‘tuxedo_io_init’: ./include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] 29 #define THIS_MODULE (&__this_module) ~^~~~~~~
struct module *

/home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c:832:47: note: in expansion of macro ‘THIS_MODULE’ 832 | tuxedo_io_device_class = class_create(THIS_MODULE, "tuxedo_io"); | ^~~ In file included from ./include/linux/device.h:31, from /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c:23: ./include/linux/device/class.h:230:54: note: expected ‘const char ’ but argument is of type ‘struct module ’ 230 | struct class __must_check class_create(const char name); | ~~^~ /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c:832:34: error: too many arguments to function ‘class_create’ 832 | tuxedo_io_device_class = class_create(THIS_MODULE, "tuxedo_io"); | ^~~~ ./include/linux/device/class.h:230:29: note: declared here 230 | struct class __must_check class_create(const char name); | ^~~~ /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c: At top level: /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.c:55:13: warning: ‘dmi_string_in’ defined but not used [-Wunused-function] 55 | static bool dmi_string_in(enum dmi_field f, const char *str) | ^~~~~ cc1: some warnings being treated as errors make[3]: [scripts/Makefile.build:243: /home/xxxx.xxxx/github/tuxedo-keyboard/./src/tuxedo_io/tuxedo_io.o] Error 1 make[2]: [/usr/src/kernels/6.5.5-200.fc38.x86_64/Makefile:2046: /home/xxxx.xxxx/github/tuxedo-keyboard] Error 2 make[1]: [Makefile:246: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/kernels/6.5.5-200.fc38.x86_64' make: [Makefile:29: all] Error 2

tuxedo-bot commented 11 months ago

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.

Please open a merge request or issue in the new project on GitLab if you contribution or bug report still applies.