From 2bd9bf98c7bc0c23870f86f97341197114c3e70a Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 6 Apr 2001 08:39:02 +0000 Subject: Handle drivers that don't have __HAVE_SG defined. --- linux/drmP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux/drmP.h') diff --git a/linux/drmP.h b/linux/drmP.h index 085d1cb8..227ec35a 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -999,12 +999,14 @@ extern int DRM(proc_cleanup)(int minor, struct proc_dir_entry *root, struct proc_dir_entry *dev_root); +#if __HAVE_SG /* Scatter Gather Support (drm_scatter.h) */ extern void DRM(sg_cleanup)(drm_sg_mem_t *entry); extern int DRM(sg_alloc)(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); extern int DRM(sg_free)(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); +#endif /* ATI PCIGART support (ati_pcigart.h) */ extern unsigned long DRM(ati_pcigart_init)(drm_device_t *dev); -- cgit v1.2.3