Index: /trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c
===================================================================
--- /trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c	(revision 53339)
+++ /trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c	(revision 53340)
@@ -53,4 +53,5 @@
 
 #include <linux/module.h>
+#include <linux/version.h>
 #include <drm/drmP.h>
 #include "vboxvideo_drm.h"
@@ -89,5 +90,10 @@
         .release = drm_release,
         .unlocked_ioctl = drm_ioctl,
+# 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,
 };
