summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-05-30 23:38:08 +0000
committerDave Airlie <airlied@linux.ie>2004-05-30 23:38:08 +0000
commit024fd4b15022236fe3f79eba23fec5d6177d0cb4 (patch)
tree2da98e8001e6262a3e77bbc711f38276becb2fb6
parent412f9909c6127db1ab03716f74cc51c4ac3a603e (diff)
2.4 compat
-rw-r--r--linux-core/drmP.h4
-rw-r--r--linux/drmP.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 068482c0..8d3f0325 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -267,6 +267,10 @@ static inline struct class_simple *class_simple_create(struct module *owner, cha
#define __user
#endif
+#ifndef __put_page
+#define __put_page(p) atomic_dec(&(p)->count)
+#endif
+
#ifndef REMAP_PAGE_RANGE_5_ARGS
#define DRM_RPR_ARG(vma)
#else
diff --git a/linux/drmP.h b/linux/drmP.h
index 068482c0..8d3f0325 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -267,6 +267,10 @@ static inline struct class_simple *class_simple_create(struct module *owner, cha
#define __user
#endif
+#ifndef __put_page
+#define __put_page(p) atomic_dec(&(p)->count)
+#endif
+
#ifndef REMAP_PAGE_RANGE_5_ARGS
#define DRM_RPR_ARG(vma)
#else