summaryrefslogtreecommitdiff
path: root/linux/drm_drv.h
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-03-16 00:52:24 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-03-16 00:52:24 +0000
commit0b6f155dbdfe661142307a72aa07a52bde6ec08f (patch)
treecb407cbb4c60565cee25247f0369749a40ab6850 /linux/drm_drv.h
parent24115068e465cf0d788d870a3c1c24bb68a9cb14 (diff)
Add a missing ifdef CTX to get rid of the waring in the gamma driver build.
XFree86 bug: Reported by: Submitted by: Reviewed by: Obtained from:
Diffstat (limited to 'linux/drm_drv.h')
-rw-r--r--linux/drm_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drm_drv.h b/linux/drm_drv.h
index 3eec29a0..83b9600c 100644
--- a/linux/drm_drv.h
+++ b/linux/drm_drv.h
@@ -913,8 +913,9 @@ int DRM(release)( struct inode *inode, struct file *filp )
#ifdef DRIVER_CTX_DTOR
DRIVER_CTX_DTOR(pos->handle);
#endif
+#if __HAVE_CTX_BITMAP
DRM(ctxbitmap_free)( dev, pos->handle );
-
+#endif
list_del( &pos->head );
DRM(free)( pos, sizeof(*pos), DRM_MEM_CTXLIST );
}