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

Closed
opened 1 year ago by kescher · 1 comments
kescher commented 1 year ago

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' ```
fef commented 1 year ago
Owner

should be fixed by b38189d3c4, thanks!

should be fixed by `b38189d3c4`, thanks!
kescher closed this issue 1 year ago
Sign in to join this conversation.
No Label
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
Loading…
There is no content yet.