Add a missing ifdef CTX to get rid of the waring in the gamma driver build.
authorJon Smirl <jonsmirl@yahoo.com>
Tue, 16 Mar 2004 00:52:24 +0000 (00:52 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Tue, 16 Mar 2004 00:52:24 +0000 (00:52 +0000)
    XFree86 bug: Reported by: Submitted by: Reviewed by: Obtained from:

linux-core/drm_drv.c
linux/drm_drv.h

index 3eec29a..83b9600 100644 (file)
@@ -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 );
                        }
index 3eec29a..83b9600 100644 (file)
@@ -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 );
                        }