drm_vm: fix for build on 2.6.22
authorDave Airlie <airlied@redhat.com>
Mon, 11 Aug 2008 00:58:41 +0000 (10:58 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Aug 2008 00:58:41 +0000 (10:58 +1000)
thanks to malc0 for pointing it out

linux-core/drm_vm.c

index 0d5242d..d4d97a4 100644 (file)
@@ -698,7 +698,7 @@ EXPORT_SYMBOL(drm_mmap);
  * protected by the bo->mutex lock.
  */
 
-#ifdef DRM_FULL_MM_COMPAT
+#if defined(DRM_FULL_MM_COMPAT) && !defined(DRM_NO_FAULT)
 static int drm_bo_vm_fault(struct vm_area_struct *vma,
                                     struct vm_fault *vmf)
 {