- Fix 2 API changes for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added.
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=443
This commit is contained in:
parent
fbf48998d6
commit
0947a127a5
@ -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.orig/src/VBox/Additions/linux/drm/vbox_mode.c
|
||||||
+++ VirtualBox-5.2.18/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);
|
drm_connector_register(connector);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 30 15:11:17 UTC 2018 - Larry Finger <Larry.Finger@gmail.com>
|
Thu Aug 30 16:54:26 UTC 2018 - Larry Finger <Larry.Finger@gmail.com>
|
||||||
|
|
||||||
- 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
|
Wed Aug 15 16:06:01 UTC 2018 - Larry.Finger@gmail.com
|
||||||
|
Loading…
Reference in New Issue
Block a user