Will not compile as a kernel module for Linux 6.2 #2

Closed
opened 2023-02-27 23:33:51 +01:00 by kescher · 1 comment

At least under DKMS, the build fails for Linux 6.2.

make: Entering directory '/usr/lib/modules/6.2.1-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.o
/var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.c: In function ‘keymash_init’:
/var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.c:102:32: error: assignment to ‘char * (*)(const struct device *, umode_t *)’ {aka ‘char * (*)(const struct device *, short unsigned int *)’} from incompatible pointer type ‘char * (*)(struct device *, umode_t *)’ {aka ‘char * (*)(struct device *, short unsigned int *)’} [-Werror=incompatible-pointer-types]
  102 |         keymash_class->devnode = keymash_devnode;
      |                                ^
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:252: /var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.o] Error 1
make: *** [Makefile:2019: /var/lib/dkms/keymash/r3.cb152fd//build] Error 2
make: Leaving directory '/usr/lib/modules/6.2.1-zen1-1-zen/build'

At least under DKMS, the build fails for Linux 6.2. ``` make: Entering directory '/usr/lib/modules/6.2.1-zen1-1-zen/build' CC [M] /var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.o /var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.c: In function ‘keymash_init’: /var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.c:102:32: error: assignment to ‘char * (*)(const struct device *, umode_t *)’ {aka ‘char * (*)(const struct device *, short unsigned int *)’} from incompatible pointer type ‘char * (*)(struct device *, umode_t *)’ {aka ‘char * (*)(struct device *, short unsigned int *)’} [-Werror=incompatible-pointer-types] 102 | keymash_class->devnode = keymash_devnode; | ^ cc1: some warnings being treated as errors make[1]: *** [scripts/Makefile.build:252: /var/lib/dkms/keymash/r3.cb152fd//build/src/keymash.o] Error 1 make: *** [Makefile:2019: /var/lib/dkms/keymash/r3.cb152fd//build] Error 2 make: Leaving directory '/usr/lib/modules/6.2.1-zen1-1-zen/build' ```
Owner

should be fixed by b38189d3c4, thanks!

should be fixed by `b38189d3c4`, thanks!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fef/keymash#2
No description provided.