Make nouveau compile on older kernels.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sat, 22 Sep 2007 11:38:36 +0000 (13:38 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sat, 22 Sep 2007 11:57:21 +0000 (13:57 +0200)
linux-core/drm_compat.h

index 870f8b7..f74f4bc 100644 (file)
@@ -193,7 +193,10 @@ extern void drm_clear_vma(struct vm_area_struct *vma,
 extern pgprot_t vm_get_page_prot(unsigned long vm_flags);
 
 #ifndef GFP_DMA32
-#define GFP_DMA32 0
+#define GFP_DMA32 GFP_KERNEL
+#endif
+#ifndef __GFP_DMA32
+#define __GFP_DMA32 GFP_KERNEL
 #endif
 
 #if defined(CONFIG_X86) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15))