mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[module] Fix build on Linux 6.4 (fixes #1075)
This commit is contained in:
@@ -569,7 +569,11 @@ static int __init kvmfr_module_init(void)
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
|
||||
kvmfr->pClass = class_create(THIS_MODULE, KVMFR_DEV_NAME);
|
||||
#else
|
||||
kvmfr->pClass = class_create(KVMFR_DEV_NAME);
|
||||
#endif
|
||||
if (IS_ERR(kvmfr->pClass)) {
|
||||
printk(KERN_INFO "kvmfr: kvmfr_module_init: failed to create class!\n");
|
||||
goto out_unreg;
|
||||
|
Reference in New Issue
Block a user