summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDavid Dawes <dawes@xfree86.org>2000-11-08 00:07:17 +0000
committerDavid Dawes <dawes@xfree86.org>2000-11-08 00:07:17 +0000
commit94071289a4c61a1083a3d6b3546b06cafeaeac44 (patch)
treeac34ab78e6e4b842fa14d61d944f26ab1376aa2d /linux-core
parent5745cb7fa70cf312d371aac44de3beae2a8d6e47 (diff)
merge with 4.0.1d
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 6be90c51..46e08e05 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -59,6 +59,15 @@
#include <asm/io.h>
#include <asm/mman.h>
#include <asm/uaccess.h>
+
+#ifndef copy_to_user_ret
+#define copy_to_user_ret(to,from,n,retval) ({ if (copy_to_user(to,from,n)) return retval; })
+#endif
+
+#ifndef copy_from_user_ret
+#define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n)) return retval; })
+#endif
+
#ifdef CONFIG_MTRR
#include <asm/mtrr.h>
#endif