summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-11 10:58:41 +1000
committerDave Airlie <airlied@redhat.com>2008-08-11 10:58:41 +1000
commit08faab27e5fbf12e53dc9d4bf38eda8da1a55007 (patch)
tree31cad09f0b997ad7681a2f6ad1fddc0765cacde1
parent280d415957c0af099c44aaecb69a06c68c86aebb (diff)
drm_vm: fix for build on 2.6.22
thanks to malc0 for pointing it out
-rw-r--r--linux-core/drm_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c
index 0d5242d3..d4d97a4d 100644
--- a/linux-core/drm_vm.c
+++ b/linux-core/drm_vm.c
@@ -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)
{