LG B6 is running fine using GVT-g on a gen9 i7. As recommended, I just tried to build the kernel module. But: bad exit status: 2
Here the log:
DKMS make.log for kvmfr-0.0.8 for kernel 6.8.0-48-generic (x86_64)
Wed Nov 6 10:35:04 PM CET 2024
make -C /lib/modules/6.8.0-48-generic/build M=/var/lib/dkms/kvmfr/0.0.8/build modules
make[1]: warning: jobserver unavailable: using -j1. Add ‘+’ to parent make rule.
make[1]: Entering directory ‘/usr/src/linux-headers-6.8.0-48-generic’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
CC [M] /var/lib/dkms/kvmfr/0.0.8/build/kvmfr.o
In file included from ./arch/x86/include/asm/mem_encrypt.h:15,
from ./include/linux/mem_encrypt.h:17,
from ./arch/x86/include/asm/processor-flags.h:6,
from ./arch/x86/include/asm/processor.h:5,
from ./include/linux/sched.h:13,
from ./include/linux/ratelimit.h:6,
from ./include/linux/dev_printk.h:16,
from ./include/linux/device.h:15,
from /var/lib/dkms/kvmfr/0.0.8/build/kvmfr.c:24:
/var/lib/dkms/kvmfr/0.0.8/build/kvmfr.c: In function ‘kvmfr_module_init’:
./include/linux/init.h:184:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
184 | #define THIS_MODULE (&__this_module)
| ~^~~~~~~~~~~~~~~
| |
| struct module *
/var/lib/dkms/kvmfr/0.0.8/build/kvmfr.c:542:32: note: in expansion of macro ‘THIS_MODULE’
542 | kvmfr->pClass = class_create(THIS_MODULE, KVMFR_DEV_NAME);
| ^~~~~~~~~~~
In file included from ./include/linux/device.h:31:
./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/kvmfr/0.0.8/build/kvmfr.c:542:19: error: too many arguments to function ‘class_create’
542 | kvmfr->pClass = class_create(THIS_MODULE, KVMFR_DEV_NAME);
| ^
./include/linux/device/class.h:228:29: note: declared here
228 | struct class * __must_check class_create(const char *name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/kvmfr/0.0.8/build/kvmfr.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-48-generic/Makefile:1925: /var/lib/dkms/kvmfr/0.0.8/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.8.0-48-generic’
make: *** [Makefile:7: all] Error 2