aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-08-28 19:50:52 +0000
committerRik Faith <faith@alephnull.com>2000-08-28 19:50:52 +0000
commit32cebaf750b82639822f5f50d0aa8a4417595ada (patch)
tree302cadb8dea2bb37491713bbc4b6ceac21f22021 /linux-core/drmP.h
parent6f07e1ff6bec8f306e8aa1d59b8bcaa93ffa776e (diff)
Add compatibility header file to make Linux 2.4.0 kernel patches cleaner.
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index b9a4dab4..d6de193d 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -61,6 +61,9 @@
#include <linux/tqueue.h>
#include <linux/poll.h>
#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
@@ -140,11 +143,6 @@ typedef struct wait_queue *wait_queue_head_t;
#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 */
#ifndef __HAVE_ARCH_CMPXCHG
/* Include this here so that driver can be