--- src/VBox/Additions/linux/drm/vboxvideo_drm.c.orig 2015-02-22 16:19:39.000000000 +0100 +++ src/VBox/Additions/linux/drm/vboxvideo_drm.c 2015-02-22 16:23:09.000000000 +0100 @@ -126,7 +126,12 @@ .open = drm_open, .release = drm_release, .unlocked_ioctl = drm_ioctl, - .mmap = drm_mmap, +# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) + /* This shouldn't be necessary even for old kernels as there is + * nothing sensible to mmap. But we play safe and keep it for + * legacy reasons. */ + .mmap = drm_mmap, +# endif .poll = drm_poll, }; #endif @@ -143,6 +148,12 @@ .get_map_ofs = drm_core_get_map_ofs, .get_reg_ofs = drm_core_get_reg_ofs, #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) + /* If this is missing a warning gets printed to dmesg. We will not + * attempt to make kernels work to which the change (915b4d11b) got back- + * ported, as the problem is only cosmetic. */ + .set_busid = drm_pci_set_busid, +#endif # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_FOPS_AS_POINTER) .fops = {