Article 6H0AP building virtualbox-kernel SlackBuild for 6.6.x kernel branch

building virtualbox-kernel SlackBuild for 6.6.x kernel branch

by
kermitdafrog8
from LinuxQuestions.org on (#6H0AP)
I'm getting an error in trying to build the kernel module for 7.0.8 on the 6.6 kernel branch. Did anyone have luck in getting this to work?

Code:n file included from /tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/combined-os-specific.c:43:
/tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function irtR0MemObjNativeLockUseri:
/tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1328:18: error: too many arguments to function iget_user_pagesi
1328 | rc = get_user_pages(R3Ptr, /* Where from. */
| ^~~~~~~~~~~~~~
In file included from /tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/r0drv/linux/the-linux-kernel.h:112,
from /tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/combined-os-specific.c:38:
./include/linux/mm.h:2452:6: note: declared here
2452 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
/tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1361:33: error: passing argument 6 of iget_user_pages_remotei from incompatible pointer type [-Werror=incompatible-pointer-types]
1361 | papVMAs /* vmas */
| ^~~~~~~
| |
| struct vm_area_struct **
./include/linux/mm.h:2422:33: note: expected iint *i but argument is of type istruct vm_area_struct **i
2422 | int *locked);
| ~~~~~^~~~~~
/tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1345:18: error: too many arguments to function iget_user_pages_remotei
1345 | rc = get_user_pages_remote(
| ^~~~~~~~~~~~~~~~~~~~~
./include/linux/mm.h:2419:6: note: declared here
2419 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:243: /tmp/SBo/virtualbox-kernel-7.0.8/vboxdrv/combined-os-specific.o] Error 1
make[4]: *** Waiting for unfinished jobs....
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments