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:
main
Jon Smirl 2004-03-16 00:52:24 +00:00
parent 24115068e4
commit 0b6f155dbd
2 changed files with 4 additions and 2 deletions

View 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 );
}

View 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 );
}