diff --git a/fixes_for_4.19.patch b/fixes_for_4.19.patch index 3c47a0a..bc175dd 100644 --- a/fixes_for_4.19.patch +++ b/fixes_for_4.19.patch @@ -2,7 +2,19 @@ Index: VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c =================================================================== --- VirtualBox-5.2.18.orig/src/VBox/Additions/linux/drm/vbox_mode.c +++ VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c -@@ -703,7 +703,11 @@ static int vbox_connector_init(struct dr +@@ -536,7 +536,11 @@ static void vbox_set_edid(struct drm_con + for (i = 0; i < EDID_SIZE - 1; ++i) + sum += edid[i]; + edid[EDID_SIZE - 1] = (0x100 - (sum & 0xFF)) & 0xFF; ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) ++ drm_connector_update_edid_property(connector, (struct edid *)edid); ++#else + drm_mode_connector_update_edid_property(connector, (struct edid *)edid); ++#endif + } + + static int vbox_get_modes(struct drm_connector *connector) +@@ -703,7 +707,11 @@ static int vbox_connector_init(struct dr drm_connector_register(connector); #endif diff --git a/virtualbox.changes b/virtualbox.changes index 5079f5b..e03294e 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- -Thu Aug 30 15:11:17 UTC 2018 - Larry Finger +Thu Aug 30 16:54:26 UTC 2018 - Larry Finger -- Fix builds for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added. +- Fix 2 API changes for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added. ------------------------------------------------------------------- Wed Aug 15 16:06:01 UTC 2018 - Larry.Finger@gmail.com