From 32cebaf750b82639822f5f50d0aa8a4417595ada Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Mon, 28 Aug 2000 19:50:52 +0000 Subject: Add compatibility header file to make Linux 2.4.0 kernel patches cleaner. --- linux/drmP.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'linux/drmP.h') diff --git a/linux/drmP.h b/linux/drmP.h index b9a4dab4..d6de193d 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -61,6 +61,9 @@ #include #include #endif +#if LINUX_VERSION_CODE < 0x020400 +#include "compat-pre24.h" +#endif #include "drm.h" #define DRM_DEBUG_CODE 2 /* Include debugging code (if > 1, then @@ -138,11 +141,6 @@ typedef struct wait_queue *wait_queue_head_t; #endif #ifndef module_exit #define module_exit(x) void cleanup_module(void) { x(); } -#endif - - /* virt_to_page added in 2.4.0-test6 */ -#if LINUX_VERSION_CODE < 0x020400 -#define virt_to_page(kaddr) (mem_map + MAP_NR(kaddr)) #endif /* Generic cmpxchg added in 2.3.x */ -- cgit v1.2.3