-
Notifications
You must be signed in to change notification settings - Fork 3
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
DKMS Build Fails on CentOS 9 Stream (5.14.0-412.el9.x86_64) #7
Comments
I can build by pulling the latest source and applying the following change: index b1c2726..c0a940e 100644
--- a/src/gasket_core.c
+++ b/src/gasket_core.c
@@ -1839,14 +1839,7 @@ int gasket_register_device(const struct gasket_driver_desc *driver_desc)
mutex_init(&internal->mutex);
memset(internal->devs, 0, sizeof(struct gasket_dev *) * GASKET_DEV_MAX);
- /* Function signature for `class_create()` is changed in kernel >= 6.4.x
- * to only accept a single argument.
- * */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
- internal->class = class_create(driver_desc->module, driver_desc->name);
-#else
- internal->class = class_create(driver_desc->name);
-#endif
+ internal->class = class_create(driver_desc->name);
if (IS_ERR(internal->class)) {
pr_err("Cannot register %s class [ret=%ld]\n",``` |
I should also mention that I have only validated that the build succeeds, I have not tested that the driver works. |
Ah damnit it's those pesky backports again. It's basically the same problem as this one I had last year: google#14. I'll submit an issue to upstream. |
@cyqsimon thanks. Please let me know if there's anything I can do to help. |
- Explicitly handle breaking changes in RHEL 9.4 backports
- Explicitly handle breaking changes in RHEL 9.4 backports
Would this also be affecting Fedora Server 41? dkms.service keeps failing and showing this error
|
The text was updated successfully, but these errors were encountered: