summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2008-08-07 17:15:50 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-08-07 17:15:50 -0700
commit8074b2e83d18bbf85d1c3284f561d849c829dd4b (patch)
treee8f34c1779cb28336669296def5cad333b312914 /linux-core/drm_compat.h
parentc7fb19e9b074281f143b0e1c9d054ebcf5ff1091 (diff)
parent4585787bd1a1d782b9e7c06095f98d09165b8c23 (diff)
Make modesetting-gem build with recent kernels
Needed to merge in VM fault changes & pci_read_base API update.
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index 08dd5f8d..35066f29 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -319,6 +319,9 @@ extern int drm_bo_map_bound(struct vm_area_struct *vma);
/* fixme when functions are upstreamed - upstreamed for 2.6.23 */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
#define DRM_IDR_COMPAT_FN
+#define DRM_NO_FAULT
+extern unsigned long drm_bo_vm_nopfn(struct vm_area_struct *vma,
+ unsigned long address);
#endif
#ifdef DRM_IDR_COMPAT_FN
int idr_for_each(struct idr *idp,