- fix kernelmodule build for kernel 4.4.169
[packages/VirtualBox.git] / kernel-4.4.169.patch
1 --- VirtualBox-6.0.0/PLD-MODULE-BUILD/HostDrivers/vboxdrv/r0drv/linux/memobj-r0drv-linux.c~     2018-12-28 14:24:08.000000000 +0100
2 +++ VirtualBox-6.0.0/PLD-MODULE-BUILD/HostDrivers/vboxdrv/r0drv/linux/memobj-r0drv-linux.c      2018-12-28 14:35:39.146820962 +0100
3 @@ -1027,7 +1027,7 @@
4  
5  /* openSUSE Leap 42.3 detection :-/ */
6  #if    LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) \
7 -    && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 6, 0) \
8 +    && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 4, 169) \
9      && defined(FAULT_FLAG_REMOTE)
10  # define GET_USER_PAGES_API     KERNEL_VERSION(4, 10, 0) /* no typo! */
11  #else
12 @@ -1113,7 +1113,7 @@
13                                  pTask->mm,              /* Whose pages. */
14                                  R3Ptr,                  /* Where from. */
15                                  cPages,                 /* How many pages. */
16 -# if GET_USER_PAGES_API >= KERNEL_VERSION(4, 9, 0)
17 +# if GET_USER_PAGES_API >= KERNEL_VERSION(4, 4, 169)
18                                  fWrite ? FOLL_WRITE |   /* Write to memory. */
19                                           FOLL_FORCE     /* force write access. */
20                                         : 0,             /* Write to memory. */
21 --- VirtualBox-6.0.0/PLD-MODULE-BUILD/GuestDrivers/vboxguest/r0drv/linux/memobj-r0drv-linux.c~  2018-12-28 23:06:27.000000000 +0900
22 +++ VirtualBox-6.0.0/PLD-MODULE-BUILD/GuestDrivers/vboxguest/r0drv/linux/memobj-r0drv-linux.c   2018-12-28 23:17:25.075959807 +0900
23 @@ -1027,7 +1027,7 @@
24  
25  /* openSUSE Leap 42.3 detection :-/ */
26  #if    LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) \
27 -    && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 6, 0) \
28 +    && LINUX_VERSION_CODE <  KERNEL_VERSION(4, 4, 169) \
29      && defined(FAULT_FLAG_REMOTE)
30  # define GET_USER_PAGES_API     KERNEL_VERSION(4, 10, 0) /* no typo! */
31  #else
32 @@ -1113,7 +1113,7 @@
33                                  pTask->mm,              /* Whose pages. */
34                                  R3Ptr,                  /* Where from. */
35                                  cPages,                 /* How many pages. */
36 -# if GET_USER_PAGES_API >= KERNEL_VERSION(4, 9, 0)
37 +# if GET_USER_PAGES_API >= KERNEL_VERSION(4, 4, 169)
38                                  fWrite ? FOLL_WRITE |   /* Write to memory. */
39                                           FOLL_FORCE     /* force write access. */
40                                         : 0,             /* Write to memory. */
This page took 0.118094 seconds and 3 git commands to generate.