2021-04-24 15:48:44 +02:00
|
|
|
Index: VirtualBox-6.1.20/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
2020-01-20 21:15:41 +01:00
|
|
|
===================================================================
|
2021-04-24 15:48:44 +02:00
|
|
|
--- VirtualBox-6.1.20.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
|
|
+++ VirtualBox-6.1.20/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
|
|
|
|
@@ -76,6 +76,10 @@
|
2020-01-20 21:15:41 +01:00
|
|
|
#define VBOXNETFLT_OS_SPECFIC 1
|
|
|
|
#include "../VBoxNetFltInternal.h"
|
|
|
|
|
2020-07-10 20:39:52 +02:00
|
|
|
+# if defined(CONFIG_SUSE_VERSION) && CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 2
|
2020-01-20 21:15:41 +01:00
|
|
|
+# define OPENSUSE_152
|
|
|
|
+# endif
|
|
|
|
+
|
|
|
|
typedef struct VBOXNETFLTNOTIFIER {
|
|
|
|
struct notifier_block Notifier;
|
|
|
|
PVBOXNETFLTINS pThis;
|
2021-04-24 15:48:44 +02:00
|
|
|
Index: VirtualBox-6.1.20/src/VBox/Additions/linux/drm/vbox_drv.c
|
2020-01-20 21:15:41 +01:00
|
|
|
===================================================================
|
2021-04-24 15:48:44 +02:00
|
|
|
--- VirtualBox-6.1.20.orig/src/VBox/Additions/linux/drm/vbox_drv.c
|
|
|
|
+++ VirtualBox-6.1.20/src/VBox/Additions/linux/drm/vbox_drv.c
|
2020-12-09 21:22:12 +01:00
|
|
|
@@ -310,12 +310,15 @@ static void vbox_master_drop(struct drm_
|
|
|
|
}
|
|
|
|
|
2020-01-20 21:15:41 +01:00
|
|
|
static struct drm_driver driver = {
|
2020-12-09 21:22:12 +01:00
|
|
|
-#if RTLNX_VER_MAX(5,4,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
|
|
|
|
- .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ |
|
|
|
|
+#if RTLNX_VER_MAX(5,4,0)
|
|
|
|
+ .driver_features =
|
2020-01-20 21:15:41 +01:00
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
|
|
|
|
+ DRIVER_PRIME |
|
|
|
|
+#endif
|
2020-08-29 21:52:49 +02:00
|
|
|
# if RTLNX_VER_MAX(5,1,0) && !RTLNX_RHEL_MAJ_PREREQ(8,1)
|
2020-01-20 21:15:41 +01:00
|
|
|
DRIVER_IRQ_SHARED |
|
2020-08-29 21:52:49 +02:00
|
|
|
# endif
|
2020-01-20 21:15:41 +01:00
|
|
|
- DRIVER_PRIME,
|
|
|
|
+ DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ,
|
2020-12-09 21:22:12 +01:00
|
|
|
#else /* >= 5.4.0 && RHEL >= 8.3 */
|
2021-04-24 15:48:44 +02:00
|
|
|
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ,
|
2020-08-29 21:52:49 +02:00
|
|
|
#endif /* < 5.4.0 */
|
2021-04-24 15:48:44 +02:00
|
|
|
Index: VirtualBox-6.1.20/src/VBox/Additions/linux/drm/vbox_main.c
|
2020-01-20 21:15:41 +01:00
|
|
|
===================================================================
|
2021-04-24 15:48:44 +02:00
|
|
|
--- VirtualBox-6.1.20.orig/src/VBox/Additions/linux/drm/vbox_main.c
|
|
|
|
+++ VirtualBox-6.1.20/src/VBox/Additions/linux/drm/vbox_main.c
|
|
|
|
@@ -640,8 +640,12 @@ static inline u64 vbox_bo_mmap_offset(st
|
2020-08-29 21:52:49 +02:00
|
|
|
#elif RTLNX_VER_MAX(3,12,0) && !RTLNX_RHEL_MAJ_PREREQ(7,0)
|
2020-01-20 21:15:41 +01:00
|
|
|
return bo->bo.addr_space_offset;
|
|
|
|
#else
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
|
|
|
|
+ return drm_vma_node_offset_addr(&bo->bo.base.vma_node);
|
|
|
|
+#else
|
|
|
|
return drm_vma_node_offset_addr(&bo->bo.vma_node);
|
2020-08-29 21:52:49 +02:00
|
|
|
#endif /* >= 5.4.0 */
|
2020-01-20 21:15:41 +01:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2021-04-24 15:48:44 +02:00
|
|
|
Index: VirtualBox-6.1.20/include/iprt/cdefs.h
|
2020-01-20 21:15:41 +01:00
|
|
|
===================================================================
|
2021-04-24 15:48:44 +02:00
|
|
|
--- VirtualBox-6.1.20.orig/include/iprt/cdefs.h
|
|
|
|
+++ VirtualBox-6.1.20/include/iprt/cdefs.h
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -1173,14 +1173,15 @@
|
|
|
|
* Tell the compiler that we're falling through to the next case in a switch.
|
|
|
|
* @sa RT_FALL_THRU */
|
|
|
|
#if RT_GNUC_PREREQ(7, 0)
|
2020-01-20 21:15:41 +01:00
|
|
|
-# define RT_FALL_THROUGH() __attribute__((__fallthrough__))
|
|
|
|
+# define FALL_THROUGH __attribute__((__fallthrough__))
|
|
|
|
#else
|
|
|
|
-# define RT_FALL_THROUGH() (void)0
|
|
|
|
+# define FALL_THROUGH (void)0
|
|
|
|
#endif
|
|
|
|
/** @def RT_FALL_THRU
|
|
|
|
* Tell the compiler that we're falling thru to the next case in a switch.
|
|
|
|
* @sa RT_FALL_THROUGH */
|
|
|
|
-#define RT_FALL_THRU() RT_FALL_THROUGH()
|
|
|
|
+#define RT_FALL_THRU() FALL_THROUGH
|
|
|
|
+#define RT_FALL_THROUGH() FALL_THROUGH
|
|
|
|
|
|
|
|
|
|
|
|
/** @def RT_IPRT_FORMAT_ATTR
|