Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues compiling on Debian Testing with kernel 6.12.12 #43

Open
cwietholt1973 opened this issue Feb 22, 2025 · 1 comment
Open

Issues compiling on Debian Testing with kernel 6.12.12 #43

cwietholt1973 opened this issue Feb 22, 2025 · 1 comment

Comments

@cwietholt1973
Copy link

I have been trying to build the dkms packages for my Debian Testing with kernel 6.12.12-amd64. I already integrated the changes from pull requests: #35, #38, #40 & #42, but I am still getting error messages during the install of the gasket-dkms package. Do you recommend downgrading to an older kernel?

DKMS (dkms-3.1.5) make.log for gasket/1.0 for kernel 6.12.12-amd64 (x86_64)
Sat Feb 22 05:11:10 PM CST 2025
Cleaning build area

command: make -C /lib/modules/6.12.12-amd64/build M=/var/lib/dkms/gasket/1.0/build clean

make: Entering directory '/usr/src/linux-headers-6.12.12-amd64'
make: Leaving directory '/usr/src/linux-headers-6.12.12-amd64'

exit code: 0

elapsed time: 00:00:00

Building module(s)

command: make -j4 KERNELRELEASE=6.12.12-amd64 -C /lib/modules/6.12.12-amd64/build M=/var/lib/dkms/gasket/1.0/build

make: Entering directory '/usr/src/linux-headers-6.12.12-amd64'
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_core.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o
CC [M] /var/lib/dkms/gasket/1.0/build/gasket_page_table.o
/var/lib/dkms/gasket/1.0/build/gasket_core.c: In function ‘gasket_register_device’:
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1840:41: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Wincompatible-pointer-types]
1840 | class_create(driver_desc->module, driver_desc->name);
| ~~~~~~~~~~~^~~~~~~~
| |
| struct module *
In file included from /usr/src/linux-headers-6.12.12-common/include/linux/device.h:31,
from /usr/src/linux-headers-6.12.12-common/include/linux/cdev.h:8,
from /var/lib/dkms/gasket/1.0/build/gasket_core.h:11,
from /var/lib/dkms/gasket/1.0/build/gasket_core.c:12:
/usr/src/linux-headers-6.12.12-common/include/linux/device/class.h:228:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
228 | struct class * __must_check class_create(const char *name);
| ~~~~~~~~~~~~^~~~
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1840:17: error: too many arguments to function ‘class_create’
1840 | class_create(driver_desc->module, driver_desc->name);
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.12.12-common/include/linux/device/class.h:228:29: note: declared here
228 | struct class * __must_check class_create(const char *name);
| ^~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.12.12-common/scripts/Makefile.build:234: /var/lib/dkms/gasket/1.0/build/gasket_core.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/gasket/1.0/build/gasket_interrupt.c: In function ‘gasket_handle_interrupt’:
/var/lib/dkms/gasket/1.0/build/gasket_interrupt.c:161:17: error: too many arguments to function ‘eventfd_signal’
161 | eventfd_signal(ctx, 1);
| ^~~~~~~~~~~~~~
In file included from /var/lib/dkms/gasket/1.0/build/gasket_interrupt.h:11,
from /var/lib/dkms/gasket/1.0/build/gasket_interrupt.c:4:
/usr/src/linux-headers-6.12.12-common/include/linux/eventfd.h:87:20: note: declared here
87 | static inline void eventfd_signal(struct eventfd_ctx *ctx)
| ^~~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.12.12-common/scripts/Makefile.build:234: /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.12.12-common/Makefile:1962: /var/lib/dkms/gasket/1.0/build] Error 2
make: *** [/usr/src/linux-headers-6.12.12-common/Makefile:236: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.12.12-amd64'

exit code: 2

elapsed time: 00:00:02

@cwietholt1973
Copy link
Author

cwietholt1973 commented Feb 22, 2025

Looks like I was able to fix it. I had to revert the change from pull request #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant