From 0b6f155dbdfe661142307a72aa07a52bde6ec08f Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 16 Mar 2004 00:52:24 +0000 Subject: 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: --- linux-core/drm_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux-core/drm_drv.c') diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index 3eec29a0..83b9600c 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -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 ); } -- cgit v1.2.3