[vbox-dev] patches for kernel 4.13.0-0.rc0.git4.1.fc27.x86_64 ?
Larry Finger
Larry.Finger at lwfinger.net
Wed Jul 12 14:03:29 UTC 2017
On 07/12/2017 06:57 AM, Sérgio Basto wrote:
> Hi,
> Have we patches for kernel 4.13.0-rcx [1]?
> Thanks,
>
> [1]
> https://bugzilla.rpmfusion.org/show_bug.cgi?id=4594
> https://bugzilla.rpmfusion.org/attachment.cgi?id=1815
Sergio,
Thus far, the changes appear to be quite simple. The problem is that
wait_queue_t has been replaced by wait_queue_entry_t. The patch below works for me.
Larry
Index: src/vboxdrv/r0drv/linux/waitqueue-r0drv-linux.h
===================================================================
--- src.orig/vboxdrv/r0drv/linux/waitqueue-r0drv-linux.h
+++ src/vboxdrv/r0drv/linux/waitqueue-r0drv-linux.h
@@ -39,6 +39,9 @@
* schedule_hrtimeout_range. */
#define RTR0SEMLNXWAIT_RESOLUTION 50000
+#ifndef wait_queue_t /* eventually kernel version >= 4.13.0 */
+#define wait_queue_t wait_queue_entry_t
+#endif
/**
* Kernel mode Linux wait state structure.
More information about the vbox-dev
mailing list