From a697941d4c35e0287c51f1a5cad5c2aa32ae9159 Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Thu, 22 Aug 2002 19:35:31 +0000 Subject: Don't (re)define vmalloc_to_page for kernel >= 2.4.19, as it has been backported from 2.5.x. Also fix a couple of incorrect LINUX_VERSION_CODE tests and fix header dependency for r128, radeon when building without AGP. --- linux/drmP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drmP.h') diff --git a/linux/drmP.h b/linux/drmP.h index c00efb4c..f31c5c3d 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -165,7 +165,7 @@ #define pte_unmap(pte) #endif -#if LINUX_VERSION_CODE < 0x020500 +#if LINUX_VERSION_CODE < 0x020413 /* KERNEL_VERSION(2,4,19) */ static inline struct page * vmalloc_to_page(void * vmalloc_addr) { unsigned long addr = (unsigned long) vmalloc_addr; -- cgit v1.2.3