2018-01-18 20:03:09 +01:00
|
|
|
Index: VirtualBox-5.2.6/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
|
2017-11-22 17:53:50 +01:00
|
|
|
===================================================================
|
2018-01-18 20:03:09 +01:00
|
|
|
--- VirtualBox-5.2.6.orig/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
|
|
|
|
+++ VirtualBox-5.2.6/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1058,7 +1058,11 @@ void VGDrvNativeISRMousePollEvent(PVBOXG
|
2017-12-02 04:59:12 +01:00
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
|
|
|
|
|
|
|
|
/** log and dbg_log parameter setter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamLogGrpSet(const char *pszValue, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamLogGrpSet(const char *pszValue, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
if (g_fLoggerCreated)
|
|
|
|
{
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1073,7 +1077,11 @@ static int vgdrvLinuxParamLogGrpSet(cons
|
2017-12-02 04:59:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/** log and dbg_log parameter getter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamLogGrpGet(char *pszBuf, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamLogGrpGet(char *pszBuf, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
PRTLOGGER pLogger = pParam->name[0] == 'd' ? RTLogDefaultInstance() : RTLogRelGetDefaultInstance();
|
|
|
|
*pszBuf = '\0';
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1084,7 +1092,11 @@ static int vgdrvLinuxParamLogGrpGet(char
|
2017-12-02 04:59:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
/** log and dbg_log_flags parameter setter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamLogFlagsSet(const char *pszValue, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamLogFlagsSet(const char *pszValue, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
if (g_fLoggerCreated)
|
|
|
|
{
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1098,7 +1110,11 @@ static int vgdrvLinuxParamLogFlagsSet(co
|
2017-12-02 04:59:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/** log and dbg_log_flags parameter getter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamLogFlagsGet(char *pszBuf, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamLogFlagsGet(char *pszBuf, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
PRTLOGGER pLogger = pParam->name[0] == 'd' ? RTLogDefaultInstance() : RTLogRelGetDefaultInstance();
|
|
|
|
*pszBuf = '\0';
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1109,7 +1125,11 @@ static int vgdrvLinuxParamLogFlagsGet(ch
|
2017-12-02 04:59:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
/** log and dbg_log_dest parameter setter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamLogDstSet(const char *pszValue, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamLogDstSet(const char *pszValue, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
if (g_fLoggerCreated)
|
|
|
|
{
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1123,7 +1143,11 @@ static int vgdrvLinuxParamLogDstSet(cons
|
2017-12-02 04:59:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/** log and dbg_log_dest parameter getter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamLogDstGet(char *pszBuf, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamLogDstGet(char *pszBuf, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
PRTLOGGER pLogger = pParam->name[0] == 'd' ? RTLogDefaultInstance() : RTLogRelGetDefaultInstance();
|
|
|
|
*pszBuf = '\0';
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1134,7 +1158,11 @@ static int vgdrvLinuxParamLogDstGet(char
|
2017-12-02 04:59:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
/** r3_log_to_host parameter setter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamR3LogToHostSet(const char *pszValue, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamR3LogToHostSet(const char *pszValue, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
if ( pszValue == NULL
|
|
|
|
|| *pszValue == '\0'
|
2017-12-29 20:22:29 +01:00
|
|
|
@@ -1152,7 +1180,11 @@ static int vgdrvLinuxParamR3LogToHostSet
|
2017-12-02 04:59:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/** r3_log_to_host parameter getter. */
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
|
|
|
+static int vgdrvLinuxParamR3LogToHostGet(char *pszBuf, const struct kernel_param *pParam)
|
|
|
|
+#else
|
|
|
|
static int vgdrvLinuxParamR3LogToHostGet(char *pszBuf, struct kernel_param *pParam)
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
strcpy(pszBuf, g_DevExt.fLoggingEnabled ? "enabled" : "disabled");
|
|
|
|
return strlen(pszBuf);
|
2018-01-18 20:03:09 +01:00
|
|
|
Index: VirtualBox-5.2.6/src/VBox/Additions/linux/drm/vbox_mode.c
|
2017-12-02 04:59:12 +01:00
|
|
|
===================================================================
|
2018-01-18 20:03:09 +01:00
|
|
|
--- VirtualBox-5.2.6.orig/src/VBox/Additions/linux/drm/vbox_mode.c
|
|
|
|
+++ VirtualBox-5.2.6/src/VBox/Additions/linux/drm/vbox_mode.c
|
2018-02-04 02:25:16 +01:00
|
|
|
@@ -401,7 +401,11 @@ static struct drm_encoder *vbox_best_sin
|
2018-01-18 20:03:09 +01:00
|
|
|
|
2017-12-29 20:22:29 +01:00
|
|
|
/* pick the encoder ids */
|
|
|
|
if (enc_id)
|
2018-01-18 20:03:09 +01:00
|
|
|
- return drm_encoder_find(connector->dev, enc_id);
|
2017-12-02 04:59:12 +01:00
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
2018-01-18 20:03:09 +01:00
|
|
|
+ return drm_encoder_find(connector->dev, NULL, enc_id);
|
2017-12-02 04:59:12 +01:00
|
|
|
+#else
|
2018-01-18 20:03:09 +01:00
|
|
|
+ return drm_encoder_find(connector->dev, enc_id);
|
2017-12-02 04:59:12 +01:00
|
|
|
+#endif
|
2017-12-29 20:22:29 +01:00
|
|
|
|
|
|
|
return NULL;
|
2017-12-02 04:59:12 +01:00
|
|
|
}
|