summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-06-10 15:40:10 +1000
committerDave Airlie <airlied@linux.ie>2007-06-10 15:40:21 +1000
commit280083d4a2a12a1ff6dc1b068553a4ae8960200c (patch)
treee03b6cb4825b18412a0984af33dfb4c8fd573493 /linux-core/drm_compat.h
parent31815730732a5d2a446aa316a5b4d837766762e6 (diff)
use krh's idr mods to remove lists from idr code
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index bc5fadc5..024059ac 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -305,4 +305,13 @@ extern int drm_bo_remap_bound(struct drm_buffer_object *bo);
extern int drm_bo_map_bound(struct vm_area_struct *vma);
#endif
+
+/* fixme when functions are upstreamed */
+#define DRM_IDR_COMPAT_FN
+#ifdef DRM_IDR_COMPAT_FN
+int idr_for_each(struct idr *idp,
+ int (*fn)(int id, void *p, void *data), void *data);
+void idr_remove_all(struct idr *idp);
+#endif
+
#endif