[vbox-dev] Fixes for API changes in kernel 4.19

Larry Finger Larry.Finger at lwfinger.net
Thu Aug 30 19:08:21 GMT 2018


As of 4.19.0-rc1, the following changes. released under an MIT license, are as 
follows:

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
@@ -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

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+       drm_connector_attach_encoder(connector, encoder);
+#else
         drm_mode_connector_attach_encoder(connector, encoder);
+#endif

         return 0;
  }




More information about the vbox-dev mailing list